diff --git a/script/opan b/script/opan index 1584da3..72c4a6f 100644 --- a/script/opan +++ b/script/opan @@ -394,7 +394,7 @@ get '/autopin/authors/id/*dist_path' => sub { return $_[0]->render(text => 'Not found', status => 404); }; -caller() ? app : app->tap(sub { shift->log->level('fatal') })->start; +caller() ? app : app->tap(sub { shift->log->level($ENV{OPAN_LOG_LEVEL} || 'fatal') })->start; =head1 NAME @@ -665,6 +665,11 @@ www.cpan.org. Remember that if you need to temporarily overlay your overlay but only for one user, there's nothing stopping you setting OPAN_MIRROR to another opan. +=head2 logging + +The default log level is C. Set the ENV var OPAN_LOG_LEVEL to one of +the log levels accepted by L, like C, C or C. + =head1 AUTHOR Matt S. Trout (mst)