Skip to content

Commit 697146b

Browse files
committed
Update xrpc gateway logger
1 parent 588d4b0 commit 697146b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rpcserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (t *RpcServer) Serve() error {
163163
return
164164
}
165165
st := status.Convert(err)
166-
t.Logger.Log(ctx, logging.LevelInfo, "gateway bad request", st.Code(), st.Message(), st.Details())
166+
t.Logger.Log(ctx, logging.LevelInfo, "gateway bad request", "code", st.Code(), "message", st.Message(), "details", st.Details())
167167
}
168168
muxOpts = append(muxOpts, runtime.WithErrorHandler(customHTTPError))
169169
}

0 commit comments

Comments
 (0)