From 4a56b1440c2bc315adda61b542793b7780cb8730 Mon Sep 17 00:00:00 2001 From: Bluesaxorcist Date: Mon, 21 Oct 2019 17:32:39 -0500 Subject: Removed termmon and fixed compiler warnings --- common/log/log.go | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'common/log/log.go') diff --git a/common/log/log.go b/common/log/log.go index 1c30b48..bcf83ea 100644 --- a/common/log/log.go +++ b/common/log/log.go @@ -59,7 +59,7 @@ var enableLogging bool var unsafeLogging bool // Init initializes logging with the given path, and log safety options. -func Init(enable bool, logFilePath string, unsafe bool) error { +func Init(enable bool, logFilePath string) error { if enable { f, err := os.OpenFile(logFilePath, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0600) if err != nil { @@ -78,12 +78,6 @@ func Enabled() bool { return enableLogging } -// Unsafe returns if unsafe logging is allowed (the caller MAY skip eliding -// addresses and other bits of sensitive information). -func Unsafe() bool { - return unsafeLogging -} - // Level returns the current log level. func Level() int { return logLevel @@ -140,14 +134,6 @@ func Infof(format string, a ...interface{}) { } } -// Debugf logs the given format string/arguments at the DEBUG log level. -func Debugf(format string, a ...interface{}) { - if enableLogging && logLevel >= LevelDebug { - msg := fmt.Sprintf(format, a...) - log.Print("[DEBUG]: " + msg) - } -} - // ElideError transforms the string representation of the provided error // based on the unsafeLogging setting. Callers that wish to log errors // returned from Go's net package should use ElideError to sanitize the -- cgit v1.2.3