Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log canceled client requests at info level (#4947)
"zed serve" logs canceled client requests (specifically, those that end due to a context.Canceled error appearing to originate from the request context) at warn level, which includes a stack trace, with an alarming message. { "level":"warn", "ts":1702997509.358625, "logger":"core", "msg":"Error", "request_id":"2ZlXC74Oeg2zEXQXX8ol8Ma1Lyd", "status":500, "error":"context canceled", "stacktrace":"..." } Change the level to info, thereby omitting the stack trace, and change the message to one less alarming. { "level":"info", "ts":1702998051.5594501, "logger":"core", "msg":"Request context canceled", "request_id":"2ZlYICXG8lrypWxyIxUBoM84qjT" }
- Loading branch information