fix: fix Debugf not using DebugEnabled (close #2068)

This commit is contained in:
JustSong
2025-02-09 10:57:22 +08:00
parent c96895e35b
commit 07808122a6
2 changed files with 9 additions and 5 deletions

View File

@@ -93,6 +93,9 @@ func Error(ctx context.Context, msg string) {
}
func Debugf(ctx context.Context, format string, a ...any) {
if !config.DebugEnabled {
return
}
logHelper(ctx, loggerDEBUG, fmt.Sprintf(format, a...))
}