summaryrefslogtreecommitdiffstats
path: root/lib/Log/Dispatch/Channels.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Log/Dispatch/Channels.pm')
-rw-r--r--lib/Log/Dispatch/Channels.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Log/Dispatch/Channels.pm b/lib/Log/Dispatch/Channels.pm
index aa0fd23..0ff54f4 100644
--- a/lib/Log/Dispatch/Channels.pm
+++ b/lib/Log/Dispatch/Channels.pm
@@ -28,7 +28,7 @@ sub new_channel {
sub _forward_to_channels {
my $self = shift;
- my $channels = shift || [keys $self->{channels}];
+ my $channels = shift || [keys %{ $self->{channels} }];
my $method = shift;
# XXX: sort of a hack - the return value is only used by would_log, which