c2d69d06b0
The errors are already returned to the client in the API response, so
logging them to the daemon log is redundant. Log the errors at level
Debug so as not to pollute the end-users' daemon logs with noise.
Refactor the logs to use structured fields. Add the request context to
the log entry so that logrus hooks could annotate the log entries with
contextual information about the API request in the hypothetical future.
Fixes #44997
Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
backend/build | ||
httpstatus | ||
httputils | ||
middleware | ||
router | ||
errorhandler.go | ||
middleware.go | ||
server.go | ||
server_test.go |