Created
May 18, 2014 06:11
-
-
Save memememomo/459272f5c9b95eddd3d1 to your computer and use it in GitHub Desktop.
開発時にplackupで起動した時に出力されるログを制御する ref: http://qiita.com/uchiko/items/a72eb946705187c46f98
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Plack::Builder; | |
builder { | |
enable 'LogFilter', filter => sub { | |
my ($env, $output) = @_; | |
# ignore static file log | |
if ($output =~ /\/static\/(js|css|images)/) { | |
return 0; | |
} | |
return 1; | |
}; | |
$app | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment