mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +02:00
logging: remove ctx from global log methods (#5337)
* log: remove warn * log: update debug * log: update info * remove level, log * remove contextLogger function
This commit is contained in:
parent
1ccaf1b22b
commit
d2c14cd6d2
53 changed files with 150 additions and 198 deletions
|
@ -1,7 +1,6 @@
|
|||
package xdsmgr
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
|
||||
envoy_config_cluster_v3 "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3"
|
||||
|
@ -21,7 +20,7 @@ var (
|
|||
)
|
||||
|
||||
func logNACK(req *envoy_service_discovery_v3.DeltaDiscoveryRequest) {
|
||||
log.Debug(context.Background()).
|
||||
log.Debug().
|
||||
Str("type-url", req.GetTypeUrl()).
|
||||
Any("error-detail", req.GetErrorDetail()).
|
||||
Msg("xdsmgr: nack")
|
||||
|
@ -30,7 +29,7 @@ func logNACK(req *envoy_service_discovery_v3.DeltaDiscoveryRequest) {
|
|||
}
|
||||
|
||||
func logACK(req *envoy_service_discovery_v3.DeltaDiscoveryRequest) {
|
||||
log.Debug(context.Background()).
|
||||
log.Debug().
|
||||
Str("type-url", req.GetTypeUrl()).
|
||||
Msg("xdsmgr: ack")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue