fix goprintffuncname linter

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
Tim Ramlot 2024-04-29 17:43:56 +02:00
parent 24e47ff364
commit ae2c59805d
No known key found for this signature in database
GPG Key ID: 47428728E0C2878D
2 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,6 @@ issues:
- nilnil
- nakedret
- asasalint
- goprintffuncname
- musttag
- nosprintfhostport
- exportloopref

View File

@ -31,12 +31,12 @@ func nowStamp() string {
return time.Now().Format(time.StampMilli)
}
func log(level string, format string, args ...interface{}) {
func logf(level string, format string, args ...interface{}) {
fmt.Fprintf(Writer, nowStamp()+": "+level+": "+format+"\n", args...)
}
func Logf(format string, args ...interface{}) {
log("INFO", format, args...)
logf("INFO", format, args...)
}
// LogBackoff gives you a logger with an exponential backoff. If the