summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c0df023)
raw | patch | inline | side by side (parent: c0df023)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 3 Mar 2008 14:37:30 +0000 (14:37 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 3 Mar 2008 14:37:30 +0000 (14:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9250 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/modules/GosaPackages.pm | patch | blob | history |
index b4b37bb9ba81e5de69723d93dd58a87153a46bc6..b3925310ee1e697d75288b2fc65171659e2e71e7 100644 (file)
sub process_gosa_msg {
my ($msg, $msg_hash, $session_id) = @_ ;
my $out_msg;
- my @out_msg_l = ();
+ my @out_msg_l = ('nohandler');
my $header = @{$msg_hash->{'header'}}[0];
$header =~ s/gosa_//;
if( exists $event_hash->{$header} ) {
# a event exists with the header as name
- &main::daemon_log("found event '$header' at event-module '".$event_hash->{$header}."'", 5);
+ &main::daemon_log("INFO: found event '$header' at event-module '".$event_hash->{$header}."'", 5);
no strict 'refs';
@out_msg_l = &{$event_hash->{$header}."::$header"}($msg, $msg_hash, $session_id);
}
# if delivery not possible raise error and return
if( not @out_msg_l ) {
&main::daemon_log("WARNING: GosaPackages got no answer from event handler '$header'", 3);
- } elsif( 0 == @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 = ();
}
return @out_msg_l;