-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix(log): Send Go std log
to logrus
, and output ggcr
logs
#6815
Conversation
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. @MarlonGamez any concerns?
Codecov Report
@@ Coverage Diff @@
## main #6815 +/- ##
==========================================
- Coverage 70.48% 69.16% -1.33%
==========================================
Files 515 547 +32
Lines 23150 25049 +1899
==========================================
+ Hits 16317 17324 +1007
- Misses 5776 6564 +788
- Partials 1057 1161 +104
Continue to review full report at Codecov.
|
The unit test failure is puzzling, I haven't been able to reproduce it locally. |
I have an idea for how to improve this to cover other libraries that log to Go's standard Marking as Draft in the meantime. |
log
to logrus
, and output ggcr
logs
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.
Sorry, I know this is draft but just had a QQ
9594d7e
to
6bb239c
Compare
Ok, this one is (finally) ready. |
I just want to make sure, this works well with Cloud code output logging. Lets try to test this PR from cloud code side in tomorrow's bug bash. |
Previously, Skaffold discarded log messages from [`go-containerregistry`](https://github.com/google/go-containerregistry) (a.k.a `ggcr`). This change enables `ggcr` log messages, with severity tied to Skaffold's log level. Related: GoogleContainerTools#6041
Includes `ggcr` logs.
Just rebased the commits. |
This change directs log messages sent to Go's standard
log
package tologrus
instead.Also, previously, Skaffold discarded log messages from
go-containerregistry
(a.k.a.ggcr
).This change enables
ggcr
log messages, with severity tied to Skaffold's log level.Related: #6041