diff --git a/Makefile.PL b/Makefile.PL index 7b8bcda..84c6339 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -24,4 +24,14 @@ WriteMakefile( 'File::chdir' => '0.1010', 'Capture::Tiny' => '0.27', }, + META_MERGE => { + "meta-spec" => { version => 2 }, + resources => { + repository => { + type => 'git', + url => 'https://github.com/shadowcat-mst/App-opan.git', + web => 'https://github.com/shadowcat-mst/App-opan', + }, + }, + }, ); diff --git a/script/opan b/script/opan index 1584da3..bd50bb1 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)