feat!: use cosmossdk.io/log logger (#15011)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package log
|
||||
|
||||
import "testing"
|
||||
|
||||
// reuse the same logger across all tests
|
||||
var _testingLogger Logger
|
||||
|
||||
func NewTestingLogger() Logger {
|
||||
if _testingLogger != nil {
|
||||
return _testingLogger
|
||||
}
|
||||
|
||||
if testing.Verbose() {
|
||||
_testingLogger = NewLoggerWithKV(ModuleKey, "test")
|
||||
} else {
|
||||
_testingLogger = NewNopLogger()
|
||||
}
|
||||
|
||||
return _testingLogger
|
||||
}
|
||||
Reference in New Issue
Block a user