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:
parent
ca1a3f37e3
commit
26450f7587
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue