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
… where the shift-argument is expected in the logger.
This commit will cause the logs using the rails logger to no longer rotate no matter what the log level is. Previously the logs would not rotate only if the level was set to debug, because in this case the shift-argument was set to 0. For log level info for example the shift argument would be set to 1, causing the logs to rotate.
Closesinstructuregh-1856
Test plan:
- Specify "logger: rails" and "log_level: info" in logging.yml
- Observe that the logs will grow beyond 1 MB
Summary: Log rotate does not work as expected when using the rails-logger.
Steps to reproduce: Use rails logger and set debug level: The log does not rotate. Set the the log level to something else and the log rotates.
Expected behavior: The log level should not affect the log rotation.
Additional notes: It looks like the level argument is being given as input where the super class expects the shift_age argument to be:
canvas-lms/lib/canvas_logger.rb
Line 29 in 181cab7
The text was updated successfully, but these errors were encountered: