Commit 64f98c43 by CaIon

fix: logger

parent ea4bd738
...@@ -67,8 +67,10 @@ func LogError(ctx context.Context, msg string) { ...@@ -67,8 +67,10 @@ func LogError(ctx context.Context, msg string) {
} }
func LogDebug(ctx context.Context, msg string, args ...any) { func LogDebug(ctx context.Context, msg string, args ...any) {
msg = fmt.Sprintf(msg, args...)
if common.DebugEnabled { if common.DebugEnabled {
if len(args) > 0 {
msg = fmt.Sprintf(msg, args...)
}
logHelper(ctx, loggerDebug, msg) logHelper(ctx, loggerDebug, msg)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment