Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/log: fix panic when using custom Logger (#4452)
log.FromCtx could panic if a custom Logger was used and a span was present in the context. This commit allows the custom logger to implement the `WithOptions(...zap.Option) Logger` method so that the CallerSkip can still be applied. In case the logger can't be casted to anything the caller skip is not applied, but we also don't panic anymore.
- Loading branch information