Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[23.0 backport] api/s/r/swarm: log backend errors at Debug level #45016

Merged

Commits on Feb 16, 2023

  1. api/s/r/swarm: log backend errors at Debug level

    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 moby#44997
    
    Signed-off-by: Cory Snider <csnider@mirantis.com>
    (cherry picked from commit a4e3c67)
    Signed-off-by: Cory Snider <csnider@mirantis.com>
    corhere committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    c2d69d0 View commit details
    Browse the repository at this point in the history