mirror of
https://github.com/moby/moby.git
synced 2026-07-12 02:25:19 +00:00
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>