• Sandeep Sukhani's avatar
    [MM-10199] Capture of stack traces into Mattermost logs (#10379) · fdf9c3e2
    Sandeep Sukhani authored
    * [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
    fdf9c3e2
Name
Last commit
Last update
..
human Loading commit data...
default.go Loading commit data...
global.go Loading commit data...
global_test.go Loading commit data...
log.go Loading commit data...
main_test.go Loading commit data...
stdlog.go Loading commit data...
stdlog_test.go Loading commit data...
sugar.go Loading commit data...
testing.go Loading commit data...