@ -64,8 +64,7 @@ func logDuration(ctx context.Context, method string, req interface{}, duration t
} else {
logger.Infof("%s - %s - %s", addr, method)
}
content, err := json.Marshal(req)
if err != nil {
logx.WithContext(ctx).Errorf("%s - %s", addr, err.Error())
@ -76,3 +75,4 @@ func logDuration(ctx context.Context, method string, req interface{}, duration t
logger.Infof("%s - %s - %s", addr, method, string(content))