ddbfc25e by astaxie

fix the log test

1 parent 1f268526
...@@ -34,7 +34,6 @@ func testConsoleCalls(bl *BeeLogger) { ...@@ -34,7 +34,6 @@ func testConsoleCalls(bl *BeeLogger) {
34 // without a log level specification. 34 // without a log level specification.
35 func TestConsole(t *testing.T) { 35 func TestConsole(t *testing.T) {
36 log1 := NewLogger(10000) 36 log1 := NewLogger(10000)
37 log1.EnableFuncCallDepth(true)
38 log1.SetLogger("console", "") 37 log1.SetLogger("console", "")
39 testConsoleCalls(log1) 38 testConsoleCalls(log1)
40 39
...@@ -45,7 +44,6 @@ func TestConsole(t *testing.T) { ...@@ -45,7 +44,6 @@ func TestConsole(t *testing.T) {
45 44
46 func BenchmarkConsole(b *testing.B) { 45 func BenchmarkConsole(b *testing.B) {
47 log := NewLogger(10000) 46 log := NewLogger(10000)
48 log.EnableFuncCallDepth(true)
49 log.SetLogger("console", "") 47 log.SetLogger("console", "")
50 for i := 0; i < b.N; i++ { 48 for i := 0; i < b.N; i++ {
51 log.Debug("debug") 49 log.Debug("debug")
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!