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 <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.
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");