From: rettenbe Date: Tue, 24 Mar 2009 14:21:56 +0000 (+0000) Subject: add daemon_log output if forwarding a client msg to registration server failed X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=50e8f281b6b3c5c53f6beee786eac18ee293e7ac;p=gosa.git add daemon_log output if forwarding a client msg to registration server failed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13566 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index bf920d64b..ddff0298d 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -1250,7 +1250,9 @@ sub msg_to_decrypt { $msg =~ s/<\/xml>/$local_address,$session_id<\/forward_to_gosa><\/xml>/; } my $error= &send_msg_to_target($msg, $regserver, $regserver_key, $header, $session_id); -print STDERR "/n$error/n/n"; + if ($error) { + &daemon_log("$session_id ERROR: some problems (error=$error) occurred while trying to send msg to registration server: $msg", 1); + } } $done = 1; &daemon_log("$session_id DEBUG: target is a client address in foreign_clients -> forward to registration server", 7);