mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
Prevent recording "Can't locate PandoraFMS/Enterprise.pm in @INC.." to the error log (picked from develop branch).
This commit is contained in:
parent
520a56f787
commit
402078d7c6
@ -592,6 +592,9 @@ sub enterprise_load ($) {
|
||||
|
||||
# Ops
|
||||
if ($@) {
|
||||
# Enterprise.pm not found.
|
||||
return 0 if ($@ =~ m/PandoraFMS\/Enterprise\.pm.*\@INC/);
|
||||
|
||||
open (STDERR, ">> " . $pa_config->{'errorlogfile'});
|
||||
print STDERR $@;
|
||||
close (STDERR);
|
||||
|
Loading…
x
Reference in New Issue
Block a user