summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2008-11-26 14:29:43 -0500
committerdoy <doy@tozt.net>2008-11-26 14:29:43 -0500
commit86241b024ccd568a02e6b8b24e5fbf9ed19e6038 (patch)
tree8ba1420b2d6654cd2149e32ef7fc2d354a0d2732
parent840e5d8e125c3117751a29cc1e8d211c027062a2 (diff)
downloadlog-dispatch-channels-86241b024ccd568a02e6b8b24e5fbf9ed19e6038.tar.gz
log-dispatch-channels-86241b024ccd568a02e6b8b24e5fbf9ed19e6038.zip
explicitly return undef in channel and output when the requested object doesn't exist
-rw-r--r--lib/Log/Dispatch/Channels.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Log/Dispatch/Channels.pm b/lib/Log/Dispatch/Channels.pm
index 574e5d1..4caf513 100644
--- a/lib/Log/Dispatch/Channels.pm
+++ b/lib/Log/Dispatch/Channels.pm
@@ -125,6 +125,7 @@ sub output {
my $output = shift;
return $self->{outputs}{$output} if exists $self->{outputs}{$output};
+ return undef;
}
sub channel {
@@ -132,6 +133,7 @@ sub channel {
my $channel = shift;
return $self->{channels}{$channel} if exists $self->{channels}{$channel};
+ return undef;
}
1;