Skip to content

Commit 158a70e

Browse files
authored
Reduce unnecessary log noise (#3918)
* Reduce unnecessary log noise in redirection handler
1 parent 0da3d99 commit 158a70e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service/frontend/redirection_interceptor.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ func (i *RedirectionInterceptor) Intercept(
177177
return i.handleRedirectAPIInvocation(ctx, req, info, handler, methodName, respAllocFn, namespaceName)
178178
}
179179

180-
// this should not happen, log warn and move on
181-
i.logger.Warn(fmt.Sprintf("RedirectionInterceptor encountered unknown API: %v", methodName))
180+
// this should not happen for frontend APIs but ok for admin and other future handlers
181+
i.logger.Debug(fmt.Sprintf("RedirectionInterceptor encountered unknown API: %v", info.FullMethod))
182182
return handler(ctx, req)
183183
}
184184

0 commit comments

Comments
 (0)