Revert "fix the log test"
This reverts commit ddbfc25e.
Showing
1 changed file
with
2 additions
and
0 deletions
| ... | @@ -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") | ... | ... |
-
Please register or sign in to post a comment