mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Re-added the errors logs when load enterprise file in server.
This commit is contained in:
parent
a57e6b4a59
commit
fc04efc82f
@ -581,12 +581,20 @@ sub enterprise_load ($) {
|
|||||||
if ($^O eq 'MSWin32') {
|
if ($^O eq 'MSWin32') {
|
||||||
# If the Windows service dies the service is stopped, even inside an eval ($RUN is set to 0)!
|
# If the Windows service dies the service is stopped, even inside an eval ($RUN is set to 0)!
|
||||||
eval 'local $SIG{__DIE__}; require PandoraFMS::Enterprise;';
|
eval 'local $SIG{__DIE__}; require PandoraFMS::Enterprise;';
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
eval 'require PandoraFMS::Enterprise;';
|
eval 'require PandoraFMS::Enterprise;';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Ops
|
# Ops
|
||||||
return 0 if ($@);
|
if ($@) {
|
||||||
|
open (STDERR, ">> " . $pa_config->{'errorlogfile'});
|
||||||
|
print STDERR $@;
|
||||||
|
close (STDERR);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
# Initialize the enterprise module.
|
# Initialize the enterprise module.
|
||||||
PandoraFMS::Enterprise::init($pa_config);
|
PandoraFMS::Enterprise::init($pa_config);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user