Permalink
Browse files

I cannot use "warning" from inside my libs

  • Loading branch information...
1 parent f2261f5 commit 4fa03aecd48e28f7c76ddcacba2331aadadf5531 Alex Kapranoff committed Feb 5, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 cpanhubble.pm
View
@@ -16,6 +16,8 @@ get '/' => sub {
get '/search' => sub {
my ($cpan, $gh);
+ $SIG{__WARN__} = sub { warning $_[0] };
+
my $cache_miss;
my $res = $cache->get(params->{q});
unless ($res) {

0 comments on commit 4fa03ae

Please sign in to comment.