You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The debug level logs from Mongoid.logger should not be printed in the rails console.
Running Mongoid.logger.level should return :info
Actual Behavior
The debug level logs from Mongoid.logger are printed in the rails console
Running Mongoid.logger.level is returning :debug
Workaround
I have fixed this using the following configuration
config.after_initialize do
Mongoid.logger.level = Logger::INFO
end
PR
The override is happening here. Should be possible to read the configured log level from Mongoid.logger and reaint the value in SemanticLogger[Mongoid].
Open to reaising a PR after verifying this. Let me know your thoughts.
The text was updated successfully, but these errors were encountered:
Environment
Provide at least:
Ruby Version: 3.2.2 (2023-03-30 revision e51014f9c0) +YJIT [x86_64-linux]
Rails Version: 7.0.8
Semantic Logger Version: 4.14.0
Rails Semantic Logger Version: 4.12.0
Rails configuration:
Expected Behavior
Mongoid.logger
should not be printed in the rails console.Mongoid.logger.level
should return:info
Actual Behavior
Mongoid.logger
are printed in the rails consoleMongoid.logger.level
is returning:debug
Workaround
I have fixed this using the following configuration
PR
The override is happening here. Should be possible to read the configured log level from
Mongoid.logger
and reaint the value inSemanticLogger[Mongoid]
.Open to reaising a PR after verifying this. Let me know your thoughts.
The text was updated successfully, but these errors were encountered: