mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 00:01:45 +08:00
DEV: check for specifics when looking at ENABLE_LOGRAGE
prior to this change ENABLE_LOGRAGE=0 some_command would enable lograge
This commit is contained in:
parent
9daed05ad0
commit
3ef4ae08f1
@ -1,6 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
if (Rails.env.production? && SiteSetting.logging_provider == 'lograge') || ENV["ENABLE_LOGRAGE"]
|
||||
if (Rails.env.production? && SiteSetting.logging_provider == 'lograge') || (ENV["ENABLE_LOGRAGE"] == "1")
|
||||
require 'lograge'
|
||||
|
||||
if Rails.configuration.multisite
|
||||
|
Loading…
x
Reference in New Issue
Block a user