Code

add daemon_log output if forwarding a client msg to registration server failed
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Mar 2009 14:21:56 +0000 (14:21 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Mar 2009 14:21:56 +0000 (14:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13566 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server

index bf920d64b6653efae653d9d8575de0cfc89f088a..ddff0298dacf45b000eb80c58526e4c9e2334cb9 100755 (executable)
@@ -1250,7 +1250,9 @@ sub msg_to_decrypt {
                                                $msg =~ s/<\/xml>/<forward_to_gosa>$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);