From acc691fdc73036be8717218bbe2ab50cec06b631 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Fri, 13 Nov 2009 10:38:16 +0000 Subject: [PATCH] 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 --- gosa-si/modules/GosaPackages.pm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 = (); } -- 2.30.2