Merge pull request #191 from FlamingTree/master

fix access log bug
This commit is contained in:
siddontang 2015-10-07 10:51:47 +08:00
commit e30a5ceb28
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ func (l *accessLog) Log(remoteAddr string, usedTime int64, request []byte, err e
format := `%s %q %d [%s]`
if err == nil {
l.l.Info(format, remoteAddr, request, usedTime, "OK")
l.l.Infof(format, remoteAddr, request, usedTime, "OK")
} else {
l.l.Info(format, remoteAddr, request, usedTime, err.Error())
l.l.Infof(format, remoteAddr, request, usedTime, err.Error())
}
}