mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 20:40:54 +00:00
fix the log test
This commit is contained in:
parent
1f26852610
commit
ddbfc25e56
@ -34,7 +34,6 @@ func testConsoleCalls(bl *BeeLogger) {
|
|||||||
// without a log level specification.
|
// without a log level specification.
|
||||||
func TestConsole(t *testing.T) {
|
func TestConsole(t *testing.T) {
|
||||||
log1 := NewLogger(10000)
|
log1 := NewLogger(10000)
|
||||||
log1.EnableFuncCallDepth(true)
|
|
||||||
log1.SetLogger("console", "")
|
log1.SetLogger("console", "")
|
||||||
testConsoleCalls(log1)
|
testConsoleCalls(log1)
|
||||||
|
|
||||||
@ -45,7 +44,6 @@ func TestConsole(t *testing.T) {
|
|||||||
|
|
||||||
func BenchmarkConsole(b *testing.B) {
|
func BenchmarkConsole(b *testing.B) {
|
||||||
log := NewLogger(10000)
|
log := NewLogger(10000)
|
||||||
log.EnableFuncCallDepth(true)
|
|
||||||
log.SetLogger("console", "")
|
log.SetLogger("console", "")
|
||||||
for i := 0; i < b.N; i++ {
|
for i := 0; i < b.N; i++ {
|
||||||
log.Debug("debug")
|
log.Debug("debug")
|
||||||
|
Loading…
Reference in New Issue
Block a user