Skip to content

Commit

Permalink
do not recommend unsubscribing the message event
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 23, 2017
1 parent 149fd9e commit 7aa8cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/Log.pm
Expand Up @@ -112,7 +112,7 @@ following new ones.
Emitted when a new message gets logged.
$log->unsubscribe('message')->on(message => sub {
$log->on(message => sub {
my ($log, $level, @lines) = @_;
say "$level: ", @lines;
});
Expand Down

0 comments on commit 7aa8cf7

Please sign in to comment.