Skip to content

Commit 31ebd3d

Browse files
committed
[logging] extend comment about disabling logging
(pushed the previous commit too soon) AO-10683
1 parent 9d00826 commit 31ebd3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/appoptics_apm/config.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ def self.check_env_vars
7878
# let's use the same debug level for ruby as well,
7979
debug_level = ENV['APPOPTICS_DEBUG_LEVEL'].to_i || AppOpticsAPM::Config[:debug_level] || 3
8080
if debug_level < 0
81-
AppOpticsAPM.logger.level = 6 # there should be no logging if APPOPTICS_DEBUG_LEVEL == -1
81+
# there should be no logging if APPOPTICS_DEBUG_LEVEL == -1
82+
# In Ruby level 5 is UNKNOWN and it can log, but level 6 is quiet
83+
AppOpticsAPM.logger.level = 6
8284
else
8385
AppOpticsAPM.logger.level = [4 - debug_level, 0].max
8486
end

0 commit comments

Comments
 (0)