Update logger functions to use variadic parameters instead of slices
This commit is contained in:
@@ -15,7 +15,7 @@ func LogDebug(message string, a ...any) {
|
||||
ErstellerLogger.LogDebug(message, a...)
|
||||
}
|
||||
|
||||
func PrintLogDebug(message string, a []any) {
|
||||
func PrintLogDebug(message string, a ...any) {
|
||||
println(fmt.Sprintf(message, a...))
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ func Debug(a ...any) {
|
||||
ErstellerLogger.Debug(a)
|
||||
}
|
||||
|
||||
func PrintDebug(a []any) {
|
||||
func PrintDebug(a ...any) {
|
||||
stringValue := joinStrings(a)
|
||||
println(stringValue)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user