From: rettenbe Date: Tue, 5 Aug 2008 14:46:47 +0000 (+0000) Subject: update: more debug infos for client registered events X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=572f1a47f4f07b8fef3833cd6a47da7ad6d1367a;p=gosa.git update: more debug infos for client registered events git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12156 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/GosaPackages.pm b/gosa-si/modules/GosaPackages.pm index cd0716f2b..814a7c05f 100644 --- a/gosa-si/modules/GosaPackages.pm +++ b/gosa-si/modules/GosaPackages.pm @@ -130,11 +130,11 @@ sub process_incoming_msg { } # Patch the correct outgoing forward_to_gosa address - if ($out_msg =~ /(\S+),(\d+)<\/forward_to_gosa>/ ) { - $out_msg =~ s/\S+<\/forward_to_gosa>/$act_server_ip:$main::server_port,$session_id<\/forward_to_gosa>/; - } else { - $out_msg =~ s/<\/xml>/$act_server_ip:$main::server_port,$session_id<\/forward_to_gosa> <\/xml>/; - } + #if ($out_msg =~ /(\S+),(\d+)<\/forward_to_gosa>/ ) { + # $out_msg =~ s/\S+<\/forward_to_gosa>/$act_server_ip:$main::server_port,$session_id<\/forward_to_gosa>/; + #} else { + # $out_msg =~ s/<\/xml>/$act_server_ip:$main::server_port,$session_id<\/forward_to_gosa> <\/xml>/; + #} # Add to each outgoing message the current POE session id $out_msg =~ s/<\/xml>/$session_id<\/session_id><\/xml>/; @@ -184,6 +184,7 @@ sub process_gosa_msg { # client is registered for this event, deliver this message to client if ($client_events =~ /,$header,/) { + &daemon_log("$session_id INFO: client '$target' is registerd for event '$header', forward message to client.", 5); @out_msg_l = ( $msg ); # client is not registered for this event, set error