浏览代码

fix p2p/testlog_test

zelig 10 年之前
父节点
当前提交
9880f99ccb
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      p2p/testlog_test.go

+ 2 - 5
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() {