Permalink
Browse files

silence undefined log warnings

  • Loading branch information...
1 parent 4d9fd29 commit 81339a1f1b9fc96173ee914061612709a76cc75f @jjn1056 jjn1056 committed Mar 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Plack/Middleware/Debug/CatalystLog.pm
@@ -23,7 +23,7 @@ sub run {
return sub {
my $res = shift;
- my $log = delete $env->{'plack.middleware.catalyst_log'};
+ my $log = delete $env->{'plack.middleware.catalyst_log'} || 'No Log';
$panel->content("<pre>$log</pre>");
$psgi_env = undef;
};

0 comments on commit 81339a1

Please sign in to comment.