-
Notifications
You must be signed in to change notification settings - Fork 91
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: remove usage of zerolog.Logger.Msgf() from zot code #1382
Conversation
a74c6db
to
aa6b642
Compare
9348ea5
to
49c6312
Compare
Codecov Report
@@ Coverage Diff @@
## main #1382 +/- ##
==========================================
- Coverage 90.70% 90.68% -0.02%
==========================================
Files 99 99
Lines 22268 22329 +61
==========================================
+ Hits 20198 20250 +52
- Misses 1544 1553 +9
Partials 526 526
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
49c6312
to
9d5fb0f
Compare
Signed-off-by: Nicol Draghici <idraghic@cisco.com>
196ec31
to
7d33a95
Compare
@@ -405,7 +405,8 @@ func (c *Controller) getSubStore(subPaths map[string]config.StorageConfig, | |||
} else { | |||
storeName := fmt.Sprintf("%v", storageConfig.StorageDriver["name"]) | |||
if storeName != storage.S3StorageDriverName { | |||
c.Log.Fatal().Err(errors.ErrBadConfig).Msgf("unsupported storage driver: %s", storageConfig.StorageDriver["name"]) | |||
c.Log.Fatal().Err(errors.ErrBadConfig).Str("storageDriver", storeName). | |||
Msg("unsupported storage driver") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, now I can column-search for "unsupported storage driver".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
What type of PR is this?
Which issue does this PR fix:
Closes #1366
What does this PR do / Why do we need it:
If an issue # is not available please add repro steps and logs showing the issue:
Testing done on this change:
Automation added to e2e:
Will this break upgrades or downgrades?
Does this PR introduce any user-facing change?:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.