final cleanups

This commit is contained in:
Gregory Wells
2026-03-25 14:02:53 -04:00
parent c11425dde7
commit f8b3c10933

View File

@@ -1,7 +1,6 @@
package logging package logging
import ( import (
"fmt"
"log" "log"
) )
@@ -38,7 +37,7 @@ func Infof(message string, v ...any) {
if currentLevel > InfoLevel { if currentLevel > InfoLevel {
return return
} }
log.Printf("Info: %s", fmt.Sprintf(message, v...)) log.Printf("Info: "+message, v...)
} }
func Debug(message string) { func Debug(message string) {
@@ -52,7 +51,7 @@ func Debugf(message string, v ...any) {
if currentLevel > DebugLevel { if currentLevel > DebugLevel {
return return
} }
log.Printf("Debug: %s", fmt.Sprintf(message, v...)) log.Printf("Debug: "+message, v...)
} }
func Warn(message string) { func Warn(message string) {
@@ -66,7 +65,7 @@ func Warnf(message string, v ...any) {
if currentLevel > WarnLevel { if currentLevel > WarnLevel {
return return
} }
log.Printf("Warn: %s", fmt.Sprintf(message, v...)) log.Printf("Warn: "+message, v...)
} }
func Error(message string) { func Error(message string) {
@@ -80,7 +79,7 @@ func Errorf(message string, v ...any) {
if currentLevel > ErrorLevel { if currentLevel > ErrorLevel {
return return
} }
log.Printf("Error: %s", fmt.Sprintf(message, v...)) log.Printf("Error: "+message, v...)
} }
func Fatal(message string) { func Fatal(message string) {