From: rettenbe Date: Fri, 13 Nov 2009 10:38:16 +0000 (+0000) Subject: adjust log messages in case of offline/unreachable clients X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=acc691fdc73036be8717218bbe2ab50cec06b631;p=gosa.git adjust log messages in case of offline/unreachable clients git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14810 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/GosaPackages.pm b/gosa-si/modules/GosaPackages.pm index f8cfeb72a..64b014917 100644 --- a/gosa-si/modules/GosaPackages.pm +++ b/gosa-si/modules/GosaPackages.pm @@ -203,11 +203,16 @@ sub process_gosa_msg { &main::daemon_log("$session_id ERROR: GosaPackages: no event handler or core function defined for '$header'", 1); @out_msg_l = (); } elsif ($out_msg_l[0] eq 'knownclienterror') { - &main::daemon_log("$session_id ERROR: no event handler found for '$header', check client registration events!", 1); - &main::daemon_log("$session_id ERROR: no or more than 1 hits are found at known_clients_db with sql query: '$sql_events'", 1); - &main::daemon_log("$session_id ERROR: processing is aborted and message will not be forwarded", 1); + if ($header eq "ping") { + &main::daemon_log("$session_id WARNING: Cannot send '$header' to '$target'. GOsa-si do not know client. Maybe client is offline or gosa-si-client process is not running.", 3); + } else { + &main::daemon_log("$session_id ERROR: no general event handler found for '$header', check client registration events!", 1); + &main::daemon_log("$session_id ERROR: no or more than 1 hits are found at known_clients_db with sql query: '$sql_events'", 1); + &main::daemon_log("$session_id ERROR: processing is aborted and message will not be forwarded", 1); + } @out_msg_l = (); } elsif ($out_msg_l[0] eq 'noeventerror') { + &main::daemon_log("$session_id ERROR: no general event handler found for '$header', check client registration events!", 1); &main::daemon_log("$session_id ERROR: client '$target' is not registered for event '$header', processing is aborted", 1); @out_msg_l = (); }