File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -394,7 +394,7 @@ get '/autopin/authors/id/*dist_path' => sub {
394394 return $_ [0]-> render(text => ' Not found' , status => 404);
395395};
396396
397- caller () ? app : app-> tap(sub { shift -> log -> level(' fatal' ) })-> start;
397+ caller () ? app : app-> tap(sub { shift -> log -> level($ENV { OPAN_LOG_LEVEL } || ' fatal' ) })-> start;
398398
399399=head1 NAME
400400
@@ -665,6 +665,11 @@ www.cpan.org. Remember that if you need to temporarily overlay your overlay
665665but only for one user, there's nothing stopping you setting OPAN_MIRROR to
666666another opan.
667667
668+ =head2 logging
669+
670+ The default log level is C<fatal > . Set the ENV var OPAN_LOG_LEVEL to one of
671+ the log levels accepted by L<Mojo::Log> , like C<warn > , C<info > or C<debug > .
672+
668673=head1 AUTHOR
669674
670675Matt S. Trout (mst) <[email protected] >
You can’t perform that action at this time.
0 commit comments