mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-31 01:47:33 +02:00
core/logging: change log.Error function (#5251)
* core/logging: change log.Error function * use request id
This commit is contained in:
parent
97bf5edc54
commit
dad954ae16
66 changed files with 163 additions and 166 deletions
|
@ -113,8 +113,8 @@ func Warn(ctx context.Context) *zerolog.Event {
|
|||
// Error starts a new message with error level.
|
||||
//
|
||||
// You must call Msg on the returned event in order to send the event.
|
||||
func Error(ctx context.Context) *zerolog.Event {
|
||||
return contextLogger(ctx).Error()
|
||||
func Error() *zerolog.Event {
|
||||
return log.Error()
|
||||
}
|
||||
|
||||
func contextLogger(ctx context.Context) *zerolog.Logger {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue