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
logging: library code should not crash #1862
Comments
From looking at both of these they seem like actual valid reasons to panic. I could be missing something though. Did you trigger these panics while your code was running? |
Closing due to lack of response. Please reopen if you have more information to share. |
Yes, it did, the request was nil I think. Based on Google's internal go style library code should not panic: go/gocomments#dont-panic |
@jba fyi |
fixes: #1862 Changes: - No longer panic on User introduced errors. Instead we log the error and let program proceed - We log.Fatalf("ptypes.TimestampProto(time.Unix(0,0)) failed: %v", err) to exit program, since it's a fatal error/likely not induced by Users
Client
Stackdriver Logging
Environment
all
Code
replace panics
0d861fa
Expected behavior
library code should not crash (except at startup)
Actual behavior
library code crashes when request is nil
The text was updated successfully, but these errors were encountered: