From 14a2d7b8c72f32db08764852370cd120926dfef5 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Tue, 5 Dec 2023 04:41:01 +0000 Subject: [PATCH] Fix grpc log prefix stripping A typing error was preventing stripGrpcPrefixArgs from working as intended. Before, the type check for args[0] to be a string type would always fail, and no prefix stripping occurred. --- internal/rpc/rpcserver/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rpc/rpcserver/log.go b/internal/rpc/rpcserver/log.go index b81d00f3a..184c205cc 100644 --- a/internal/rpc/rpcserver/log.go +++ b/internal/rpc/rpcserver/log.go @@ -42,7 +42,7 @@ func stripGrpcPrefix(logstr string) string { // stripGrpcPrefixArgs removes the package prefix from the first argument, if it // exists and is a string, returning the same arg slice after reassigning the // first arg. -func stripGrpcPrefixArgs(args ...any) []any { +func stripGrpcPrefixArgs(args []any) []any { if len(args) == 0 { return args }