2007-07-11 Manuel Arostegui <marostegui@artica.es>

* bin/pandora_server.pl: Fixed a bug which make
          impossible to figure out what the error was
          (if there was) when launching the pandora_server.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@557 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
marostegui 2007-07-11 15:22:15 +00:00
parent 236dd4cb90
commit ceb24a2592
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-07-11 Manuel Arostegui <marostegui@artica.es>
* bin/pandora_server.pl: Fixed a bug which make
impossible to figure out what the error was
(if there was) when launching the pandora_server.
2007-06-29 Raul Mateos <raulofpandora@gmail.com>
* conf/pandora_server.conf: Changed default incomming dir and log.

View File

@ -36,7 +36,7 @@ use PandoraFMS::Tools;
use PandoraFMS::DB;
# FLUSH in each IO, only for DEBUG, very slow !
$| = 0;
$| = 1;
my %pa_config;
@ -111,6 +111,7 @@ sub pandora_dataserver {
};
if ($@) {
logger ($pa_config, "[ERROR] Error processing XML contents in $file_data",0);
logger ($pa_config, "[ERROR] $@", 0);
copy ($file_data,$file_data."_BADXML");
if (($pa_config->{'pandora_check'} == 1) && ( -e $file_md5 )) {
copy ($file_md5,$file_md5."_BADCHECKSUM");