mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-06 05:54:28 -04:00
logging: reduce grpc logging noise (#3329)
* Normalize gRPC logs to print at warn level only * Fix grpcLogger level enablement --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
6e6ea1a9d5
commit
c11631ec11
12 changed files with 48 additions and 43 deletions
|
@ -109,7 +109,7 @@ func New(
|
|||
grpcServer := grpc.NewServer(
|
||||
grpc.Creds(atlscredentials.New(issuer, nil)),
|
||||
grpc.KeepaliveParams(keepalive.ServerParameters{Time: 15 * time.Second}),
|
||||
logger.GetServerUnaryInterceptor(log.WithGroup("gRPC")),
|
||||
logger.GetServerUnaryInterceptor(logger.GRPCLogger(log)),
|
||||
)
|
||||
initproto.RegisterAPIServer(grpcServer, server)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue