1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 23:01:28 +00:00

Revert "fix the log test"

This reverts commit ddbfc25e56.
This commit is contained in:
astaxie 2014-10-30 16:57:55 +08:00
parent 68c3bdfdd4
commit 1636a7271c

View File

@ -34,6 +34,7 @@ func testConsoleCalls(bl *BeeLogger) {
// without a log level specification.
func TestConsole(t *testing.T) {
log1 := NewLogger(10000)
log1.EnableFuncCallDepth(true)
log1.SetLogger("console", "")
testConsoleCalls(log1)
@ -44,6 +45,7 @@ func TestConsole(t *testing.T) {
func BenchmarkConsole(b *testing.B) {
log := NewLogger(10000)
log.EnableFuncCallDepth(true)
log.SetLogger("console", "")
for i := 0; i < b.N; i++ {
log.Debug("debug")