From 8e4217406606e569372d8a6a08bf1bf89cb16669 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Mon, 3 Mar 2008 15:12:50 +0000 Subject: [PATCH] bugfixfix: better infos in daemon_log in error case git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9251 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/GosaPackages.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gosa-si/modules/GosaPackages.pm b/gosa-si/modules/GosaPackages.pm index b3925310e..9f1f25696 100644 --- a/gosa-si/modules/GosaPackages.pm +++ b/gosa-si/modules/GosaPackages.pm @@ -314,10 +314,14 @@ sub process_gosa_msg { no strict 'refs'; @out_msg_l = &{$event_hash->{$header}."::$header"}($msg, $msg_hash, $session_id); } +print STDERR "===============================\n"; +print STDERR Dumper(@out_msg_l); + # if delivery not possible raise error and return - if( not @out_msg_l ) { + if( not defined @out_msg_l[0] ) { &main::daemon_log("WARNING: GosaPackages got no answer from event handler '$header'", 3); + @out_msg_l = (); } elsif( $out_msg_l[0] eq 'nohandler') { &main::daemon_log("ERROR: GosaPackages: no event handler or core function defined for '$header'", 1); @out_msg_l = (); -- 2.30.2