From ac9fc954708ac4c563cc1f73a59d9e4e871ca2e6 Mon Sep 17 00:00:00 2001 From: shaoguang Date: Tue, 6 Oct 2015 17:20:32 +0800 Subject: [PATCH] fix access log bug --- server/accesslog.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/accesslog.go b/server/accesslog.go index 4c41f1e..4870643 100644 --- a/server/accesslog.go +++ b/server/accesslog.go @@ -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()) } }