mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +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
|
@ -180,7 +180,7 @@ func (srv *Server) Run(ctx context.Context) error {
|
|||
|
||||
// start the gRPC server
|
||||
eg.Go(func() error {
|
||||
log.Debug(ctx).Str("addr", srv.GRPCListener.Addr().String()).Msg("starting control-plane gRPC server")
|
||||
log.Ctx(ctx).Debug().Str("addr", srv.GRPCListener.Addr().String()).Msg("starting control-plane gRPC server")
|
||||
return grpcutil.ServeWithGracefulStop(ctx, srv.GRPCServer, srv.GRPCListener, time.Second*5)
|
||||
})
|
||||
|
||||
|
@ -199,7 +199,7 @@ func (srv *Server) Run(ctx context.Context) error {
|
|||
|
||||
// start the HTTP server
|
||||
eg.Go(func() error {
|
||||
log.Debug(ctx).
|
||||
log.Ctx(ctx).Debug().
|
||||
Str("addr", entry.Listener.Addr().String()).
|
||||
Msgf("starting control-plane %s server", entry.Name)
|
||||
return httputil.ServeWithGracefulStop(ctx, entry.Handler, entry.Listener, time.Second*5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue