mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* [MM-10199] Printing stack traces from http handlers panics in mattermost logs Previously recovery handlers from gorilla mux was used, which was printing stack traces from panics in stderr Removing it should print stack traces into logger passed to http.Server, which as of now is created from mlog Refer #10351 * Logging errors from http server at error level instead of info level Added test for verifying whether panic gets logged in server logger * Fixed failing test due to tls error * Closing temp file for panic log before removing and checking errors for closure and removal * Added regular log line in panic handler for TestPanicLog to check whether it gets logged