From 0c50a6663b6a6f6c4a0021f08731fa2298a06008 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Thu, 3 Jul 2008 14:36:35 +0000 Subject: [PATCH] change debug information in case of invalid gosa-si messages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11529 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index a73ca11c6..825b040bf 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -539,7 +539,7 @@ sub check_key_and_xml_validity { sub check_outgoing_xml_validity { - my ($msg) = @_; + my ($msg, $session_id) = @_; my $msg_hash; eval{ @@ -592,8 +592,8 @@ sub check_outgoing_xml_validity { } }; if($@) { - daemon_log("WARNING: outgoing msg is not gosa-si envelope conform", 5); - daemon_log("$@ ".(defined($msg) && length($msg)>0)?$msg:"Empty Message", 8); + daemon_log("$session_id WARNING: outgoing msg is not gosa-si envelope conform: ", 5); + daemon_log("$@ ".(defined($msg) && length($msg)>0)?$msg:"Empty Message", 5); $msg_hash = undef; } @@ -1348,7 +1348,7 @@ sub process_task { foreach my $answer ( @{$answer_l} ) { # check outgoing msg to xml validity - my $answer_hash = &check_outgoing_xml_validity($answer); + my $answer_hash = &check_outgoing_xml_validity($answer, $session_id); if( not defined $answer_hash ) { next; } $answer_header = @{$answer_hash->{'header'}}[0]; -- 2.30.2