mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-09 23:42:21 -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
|
@ -157,8 +157,8 @@ func Start(log *slog.Logger, wg *sync.WaitGroup, serv pb.DebugdServer) {
|
|||
go func() {
|
||||
defer wg.Done()
|
||||
|
||||
grpcLog := log.WithGroup("gRPC")
|
||||
logger.ReplaceGRPCLogger(slog.New(logger.NewLevelHandler(slog.LevelWarn, grpcLog.Handler())))
|
||||
grpcLog := logger.GRPCLogger(log)
|
||||
logger.ReplaceGRPCLogger(grpcLog)
|
||||
|
||||
grpcServer := grpc.NewServer(
|
||||
logger.GetServerStreamInterceptor(grpcLog),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue