From b85376c4803627c61eb59d122de30de029a27bd2 Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Date: Wed, 1 Nov 2023 13:41:57 +0200 Subject: [PATCH] Stop logging health checks again We had missed renaming in the logging interceptor. --- internal/logger/logging_interceptor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/logger/logging_interceptor.go b/internal/logger/logging_interceptor.go index 6d1330b3bd..aea8ad1324 100644 --- a/internal/logger/logging_interceptor.go +++ b/internal/logger/logging_interceptor.go @@ -83,7 +83,7 @@ func viperLogLevelToZerologLevel(viperLogLevel string) zerolog.Level { func Interceptor( /*logLevel string, logFormat string, logFile string*/ ) grpc.UnaryServerInterceptor { return func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) { // Don't log health checks, they spam the logs - if info.FullMethod == "/mediator.v1.HealthService/CheckHealth" { + if info.FullMethod == "/minder.v1.HealthService/CheckHealth" { return handler(ctx, req) } // Attach the resource to all logging events in the context