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:
Sam Saffron 2019-06-13 15:56:58 +10:00
parent 9daed05ad0
commit 3ef4ae08f1
1 changed files with 1 additions and 1 deletions

View File

@ -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