From 81e97837defc603ba51f519df798bc33b5d93e03 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Tue, 17 Feb 2015 19:31:32 +0100 Subject: [PATCH] filter log fix --- app/controllers/home_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 8d4ccd0..20a9a49 100755 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -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