diff --git a/debug.go b/debug.go index 14f3863..ef9490b 100644 --- a/debug.go +++ b/debug.go @@ -1,18 +1,6 @@ package main -import ( - "sync" -) - -var ( - // wait until lorg will be thread-safe - loggerLock = sync.Mutex{} -) - func tracef(format string, args ...interface{}) { - loggerLock.Lock() - defer loggerLock.Unlock() - // TODO always write debug to the file if verbose >= verbosityTrace { logger.Debugf(format, args...) @@ -20,23 +8,14 @@ func tracef(format string, args ...interface{}) { } func debugf(format string, args ...interface{}) { - loggerLock.Lock() - defer loggerLock.Unlock() - // TODO always write debug to the file logger.Debugf(format, args...) } func infof(format string, args ...interface{}) { - loggerLock.Lock() - defer loggerLock.Unlock() - logger.Infof(format, args...) } func warningf(format string, args ...interface{}) { - loggerLock.Lock() - defer loggerLock.Unlock() - logger.Warningf(format, args...) }