Skip to content

Commit

Permalink
Fix grpc log prefix stripping
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrick committed Dec 5, 2023
1 parent 9873543 commit 14a2d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rpc/rpcserver/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 14a2d7b

Please sign in to comment.