summaryrefslogtreecommitdiff
path: root/common/log
diff options
context:
space:
mode:
Diffstat (limited to 'common/log')
-rw-r--r--common/log/log.go16
1 files changed, 1 insertions, 15 deletions
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