2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-12 21:10:47 +08:00

allow for no lograge

(fixes tests)
This commit is contained in:
Sam 2018-02-21 15:40:37 +11:00
parent ca1a3f37e3
commit 26450f7587

View file

@ -97,7 +97,7 @@ module Hijack
io = nil
ensure

if Rails.configuration.lograge.enabled
if Rails.configuration.try(:lograge).try(:enabled)
if timings
db_runtime = 0
if timings[:sql]