From ceb24a2592f96906fee4a9d34bb5aa4a99bb4dac Mon Sep 17 00:00:00 2001 From: marostegui Date: Wed, 11 Jul 2007 15:22:15 +0000 Subject: [PATCH] 2007-07-11 Manuel Arostegui * 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 --- pandora_server/ChangeLog | 6 ++++++ pandora_server/bin/pandora_server.pl | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 432fc996c8..8853b5184d 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,9 @@ +2007-07-11 Manuel Arostegui + + * 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 * conf/pandora_server.conf: Changed default incomming dir and log. diff --git a/pandora_server/bin/pandora_server.pl b/pandora_server/bin/pandora_server.pl index d2585d25c8..c7df7a7c38 100755 --- a/pandora_server/bin/pandora_server.pl +++ b/pandora_server/bin/pandora_server.pl @@ -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");