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

feat(log): use short image/container IDs in logs #888

Merged
merged 1 commit into from
Apr 18, 2021
Merged

Conversation

piksel
Copy link
Member

@piksel piksel commented Apr 8, 2021

This should clean up the logging output and only refer to images and containers using their short hashes.

ref #873

@piksel piksel requested a review from simskij as a code owner April 8, 2021 21:12
@codecov
Copy link

codecov bot commented Apr 8, 2021

Codecov Report

❗ No coverage uploaded for pull request base (main@da56c21). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #888   +/-   ##
=======================================
  Coverage        ?   43.49%           
=======================================
  Files           ?       25           
  Lines           ?     1391           
  Branches        ?        0           
=======================================
  Hits            ?      605           
  Misses          ?      725           
  Partials        ?       61           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update da56c21...aea07d7. Read the comment docs.

Comment on lines -287 to +295
if opts.RegistryAuth != "" {
log.Debug("Credentials loaded")
}
if err != nil {
log.Debugf("Error loading authentication credentials %s", err)
return err
}
if opts.RegistryAuth != "" {
log.Debug("Credentials loaded")
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not actually part of the intended changes, but got a lint warning about the use of opts before checking if an error was returned. Shouldn't matter, but doing it in this order is at least more correct.

@simskij simskij merged commit 6a9d985 into main Apr 18, 2021
@simskij simskij deleted the feat/log-short-ids branch April 18, 2021 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants