Remove logger and replace it with a library
This commit is contained in:
@@ -2,8 +2,9 @@ package processor
|
||||
|
||||
import (
|
||||
"io"
|
||||
"cook/logger"
|
||||
"os"
|
||||
|
||||
logger "git.site.quack-lab.dev/dave/cylogger"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -20,7 +21,7 @@ func init() {
|
||||
if disableTestLogs {
|
||||
// Create a new logger that writes to nowhere
|
||||
silentLogger := logger.New(io.Discard, "", 0)
|
||||
logger.DefaultLogger = silentLogger
|
||||
logger.Default = silentLogger
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user