filter log fix

This commit is contained in:
Andreas Stephanides
2015-02-17 19:31:32 +01:00
parent e1ffc5ae85
commit 81e97837de

View File

@@ -30,7 +30,7 @@ class HomeController < ApplicationController
authorize! :doadmin, User
lines = params[:lines]
if Rails.env == "production"
@logs = `tail -n #{lines} log/production.log | grep Error`
@logs = `tail -n #{lines} log/production.log | grep -v 'actionpack\\|railties\\|activesupport\\|::Translation'`
else
@logs = `tail -n #{lines} log/development.log | grep -v 'actionpack\\|railties\\|activesupport\\|::Translation'`
end