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

add Fatal{Context}{f} #8

Merged
merged 3 commits into from
Feb 6, 2024
Merged

add Fatal{Context}{f} #8

merged 3 commits into from
Feb 6, 2024

Conversation

imjasonh
Copy link
Member

This adds clog.Fatal{Context}{f}, and clog.FromContext(ctx).Fatal{Context}{f}

Fatal logs at LevelError then calls os.Exit(1), like stdlib log.Fatal: https://cs.opensource.google/go/go/+/refs/tags/go1.21.6:src/log/log.go;l=413

Signed-off-by: Jason Hall <[email protected]>
@imjasonh imjasonh requested a review from wlynch January 18, 2024 15:52
logger.go Outdated Show resolved Hide resolved
logger.go Outdated Show resolved Hide resolved
imjasonh and others added 2 commits January 18, 2024 12:31
Co-authored-by: Billy Lynch <[email protected]>
Signed-off-by: Jason Hall <[email protected]>
Co-authored-by: Billy Lynch <[email protected]>
Signed-off-by: Jason Hall <[email protected]>
@imjasonh imjasonh enabled auto-merge (squash) February 6, 2024 03:07
@imjasonh imjasonh merged commit 4d1a940 into chainguard-dev:main Feb 6, 2024
2 checks passed
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