aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-03-24 00:41:41 +0800
committerzelig <viktor.tron@gmail.com>2015-03-24 00:41:41 +0800
commit9880f99ccb81477f1026db68c123aa548297c648 (patch)
treedc6f58334730f25240266f494c952d11aead5825
parent0330077d76b48934ab024a309000f83c78047d8a (diff)
downloaddexon-9880f99ccb81477f1026db68c123aa548297c648.tar.gz
dexon-9880f99ccb81477f1026db68c123aa548297c648.tar.zst
dexon-9880f99ccb81477f1026db68c123aa548297c648.zip
fix p2p/testlog_test
-rw-r--r--p2p/testlog_test.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/p2p/testlog_test.go b/p2p/testlog_test.go
index c524c154c..ac973bcf5 100644
--- a/p2p/testlog_test.go
+++ b/p2p/testlog_test.go
@@ -15,11 +15,8 @@ func testlog(t *testing.T) testLogger {
return l
}
-func (testLogger) GetLogLevel() logger.LogLevel { return logger.DebugDetailLevel }
-func (testLogger) SetLogLevel(logger.LogLevel) {}
-
-func (l testLogger) LogPrint(level logger.LogLevel, msg string) {
- l.t.Logf("%s", msg)
+func (l testLogger) LogPrint(msg logger.LogMsg) {
+ l.t.Logf("%s", msg.String())
}
func (testLogger) detach() {