mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-17 08:38:15 +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
|
@ -57,7 +57,7 @@ func (srv *Server) UpdateConfig(options ...ServerOption) {
|
|||
if srv.backend != nil {
|
||||
err := srv.backend.Close()
|
||||
if err != nil {
|
||||
log.Error(ctx).Err(err).Msg("databroker: error closing backend")
|
||||
log.Ctx(ctx).Error().Err(err).Msg("databroker: error closing backend")
|
||||
}
|
||||
srv.backend = nil
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ func (srv *Server) UpdateConfig(options ...ServerOption) {
|
|||
if srv.registry != nil {
|
||||
err := srv.registry.Close()
|
||||
if err != nil {
|
||||
log.Error(ctx).Err(err).Msg("databroker: error closing registry")
|
||||
log.Ctx(ctx).Error().Err(err).Msg("databroker: error closing registry")
|
||||
}
|
||||
srv.registry = nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue