1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 22:00:49 +00:00

fix the log test

This commit is contained in:
astaxie 2014-10-28 19:34:11 +08:00
parent 1f26852610
commit ddbfc25e56

View File

@ -34,7 +34,6 @@ 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)
@ -45,7 +44,6 @@ 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")