Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MM-62926: Fix standard logger redirection issue (mattermost#30137)
We were redirecting any logging happening via the Go standard logger to our own mlog instance. The issue is that all those logs were happening at LvlStdLog level which is higher than LvlDebug. LvlStdLog is at 10, and LvlDebug is at 5. So unless a customer sets the log level specifically to "stdlog" or sets up advanced logging to specifically log for that level, no standard logs will ever get logged. We fix this by logging it at warn level. The reason for warn is that mostly external libraries use this facility to log out-of-band errors that could not be returned using standard error returns. I saw another plugin error which was logged similarly. This was never surfaced before due to this bug. https://mattermost.atlassian.net/browse/MM-62926 ```release-note NONE ```
- Loading branch information