From 5360febd72e76442da369f887ca23ec6a7428968 Mon Sep 17 00:00:00 2001 From: fatedier Date: Fri, 21 Apr 2017 16:44:51 +0800 Subject: [PATCH] update log module --- Godeps/Godeps.json | 4 ++-- vendor/github.com/fatedier/beego/logs/log.go | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 7ea95ad..68eafb2 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -18,8 +18,8 @@ }, { "ImportPath": "github.com/fatedier/beego/logs", - "Comment": "v1.7.2-71-gc12472d", - "Rev": "c12472d5e4365d2927f5fba8e9260a3e3d51fa52" + "Comment": "v1.7.2-72-gf73c369", + "Rev": "f73c3692bbd70a83728cb59b2c0423ff95e4ecea" }, { "ImportPath": "github.com/golang/snappy", diff --git a/vendor/github.com/fatedier/beego/logs/log.go b/vendor/github.com/fatedier/beego/logs/log.go index 326d1c3..54eaff7 100644 --- a/vendor/github.com/fatedier/beego/logs/log.go +++ b/vendor/github.com/fatedier/beego/logs/log.go @@ -1,4 +1,4 @@ -// Copyright 2014 beego Author. All Rights Reserved. +// Copyright 2012 beego Author. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -55,6 +55,7 @@ const ( LevelNotice LevelInformational LevelDebug + LevelTrace ) // levelLogLogger is defined to implement log.Logger @@ -76,9 +77,8 @@ const ( // Legacy log level constants to ensure backwards compatibility. const ( - LevelInfo = LevelInformational - LevelTrace = LevelDebug - LevelWarn = LevelWarning + LevelInfo = LevelInformational + LevelWarn = LevelWarning ) type newLoggerFunc func() Logger @@ -92,7 +92,7 @@ type Logger interface { } var adapters = make(map[string]newLoggerFunc) -var levelPrefix = [LevelDebug + 1]string{"[M] ", "[A] ", "[C] ", "[E] ", "[W] ", "[N] ", "[I] ", "[D] "} +var levelPrefix = [LevelTrace + 1]string{"[M] ", "[A] ", "[C] ", "[E] ", "[W] ", "[N] ", "[I] ", "[D] ", "[T] "} // Register makes a log provide available by the provided name. // If Register is called twice with the same name or if driver is nil, @@ -440,10 +440,10 @@ func (bl *BeeLogger) Info(format string, v ...interface{}) { // Trace Log TRACE level message. // compatibility alias for Debug() func (bl *BeeLogger) Trace(format string, v ...interface{}) { - if LevelDebug > bl.level { + if LevelTrace > bl.level { return } - bl.writeMsg(LevelDebug, format, v...) + bl.writeMsg(LevelTrace, format, v...) } // Flush flush all chan data.