|
@@ -62,27 +62,27 @@ func Debug(msg string, v ...interface{}) {
|
|
|
|
|
|
func InfoWithTraceId(ctx *context.Context, msg string, v ...interface{}) {
|
|
|
if traceId := ctx.Input.GetData("traceId"); traceId != "" {
|
|
|
- msg = fmt.Sprintf("[traceId:%s,%v]", traceId, msg)
|
|
|
+ msg = fmt.Sprintf("[traceId:%v,%v]", traceId, msg)
|
|
|
}
|
|
|
Info(msg, v...)
|
|
|
}
|
|
|
|
|
|
func ErrorWithTraceId(ctx *context.Context, msg string, v ...interface{}) {
|
|
|
if traceId := ctx.Input.GetData("traceId"); traceId != "" {
|
|
|
- msg = fmt.Sprintf("[traceId:%s,%v]", traceId, msg)
|
|
|
+ msg = fmt.Sprintf("[traceId:%v,%v]", traceId, msg)
|
|
|
}
|
|
|
Error(msg, v...)
|
|
|
}
|
|
|
|
|
|
func WarnWithTraceId(ctx *context.Context, msg string, v ...interface{}) {
|
|
|
if traceId := ctx.Input.GetData("traceId"); traceId != "" {
|
|
|
- msg = fmt.Sprintf("[traceId:%s,%v]", traceId, msg)
|
|
|
+ msg = fmt.Sprintf("[traceId:%v,%v]", traceId, msg)
|
|
|
}
|
|
|
Warn(msg, v...)
|
|
|
}
|
|
|
func DebugWithTraceId(ctx *context.Context, msg string, v ...interface{}) {
|
|
|
if traceId := ctx.Input.GetData("traceId"); traceId != "" {
|
|
|
- msg = fmt.Sprintf("[traceId:%s,%v]", traceId, msg)
|
|
|
+ msg = fmt.Sprintf("[traceId:%v,%v]", traceId, msg)
|
|
|
}
|
|
|
Debug(msg, v...)
|
|
|
}
|