1636a727 by astaxie

Revert "fix the log test"

This reverts commit ddbfc25e.
1 parent 68c3bdfd
...@@ -34,6 +34,7 @@ func testConsoleCalls(bl *BeeLogger) { ...@@ -34,6 +34,7 @@ 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)
37 log1.SetLogger("console", "") 38 log1.SetLogger("console", "")
38 testConsoleCalls(log1) 39 testConsoleCalls(log1)
39 40
...@@ -44,6 +45,7 @@ func TestConsole(t *testing.T) { ...@@ -44,6 +45,7 @@ func TestConsole(t *testing.T) {
44 45
45 func BenchmarkConsole(b *testing.B) { 46 func BenchmarkConsole(b *testing.B) {
46 log := NewLogger(10000) 47 log := NewLogger(10000)
48 log.EnableFuncCallDepth(true)
47 log.SetLogger("console", "") 49 log.SetLogger("console", "")
48 for i := 0; i < b.N; i++ { 50 for i := 0; i < b.N; i++ {
49 log.Debug("debug") 51 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!