fix goprintffuncname linter
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
parent
24e47ff364
commit
ae2c59805d
@ -16,7 +16,6 @@ issues:
|
||||
- nilnil
|
||||
- nakedret
|
||||
- asasalint
|
||||
- goprintffuncname
|
||||
- musttag
|
||||
- nosprintfhostport
|
||||
- exportloopref
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user