Files
troubleshoot/pkg/debug/log.go
Tom Wieczorek e85e91e784 chore: remove unused code (#1013)
Remove code snippets that are not used across the codebase.
2023-02-10 17:27:50 +00:00

26 lines
341 B
Go

package debug
import (
"log"
"github.com/spf13/viper"
)
func Print(v ...interface{}) {
if viper.GetBool("debug") {
log.Print(v...)
}
}
func Printf(format string, v ...interface{}) {
if viper.GetBool("debug") {
log.Printf(format, v...)
}
}
func Println(v ...interface{}) {
if viper.GetBool("debug") {
log.Println(v...)
}
}