DEV: check for specifics when looking at ENABLE_LOGRAGE

DEV: check for specifics when looking at ENABLE_LOGRAGE

prior to this change ENABLE_LOGRAGE=0 some_command would enable lograge

diff --git a/config/initializers/101-lograge.rb b/config/initializers/101-lograge.rb
index de1ab4f..d3a3f98 100644
--- a/config/initializers/101-lograge.rb
+++ b/config/initializers/101-lograge.rb
@@ -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

GitHub sha: 3ef4ae08

1 Like