Skip to content

Commit

Permalink
always set STDERR to autoflush
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Nov 21, 2017
1 parent ae5c823 commit 59b859d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.psgi
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ use lib "$root_dir/lib";

use MetaCPAN::Server;

STDERR->autoflush;

# prevent output buffering when in Docker containers (e.g. in docker-compose)
if ( -e "/.dockerenv" and MetaCPAN::Server->log->isa('Catalyst::Log') ) {
STDERR->autoflush;
STDOUT->autoflush;
}

Expand Down

0 comments on commit 59b859d

Please sign in to comment.