1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-11 08:40:39 +00:00

Revert "should use time.Since instead of time.Now().Sub"

This commit is contained in:
astaxie
2017-09-09 06:29:38 +08:00
committed by GitHub
parent 07a9a2d0f3
commit a7354d2d08
6 changed files with 7 additions and 7 deletions

View File

@ -36,7 +36,7 @@ func NewLog(out io.Writer) *Log {
}
func debugLogQueies(alias *alias, operaton, query string, t time.Time, err error, args ...interface{}) {
sub := time.Since(t) / 1e5
sub := time.Now().Sub(t) / 1e5
elsp := float64(int(sub)) / 10.0
flag := " OK"
if err != nil {