allow for no lograge

(fixes tests)
This commit is contained in:
Sam 2018-02-21 15:40:37 +11:00
parent ca1a3f37e3
commit 26450f7587
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ module Hijack
io = nil io = nil
ensure ensure
if Rails.configuration.lograge.enabled if Rails.configuration.try(:lograge).try(:enabled)
if timings if timings
db_runtime = 0 db_runtime = 0
if timings[:sql] if timings[:sql]