modify accesslog format

This commit is contained in:
wenyekui 2014-08-04 10:17:30 +08:00
parent 9c5ade8ee3
commit 9ad7095e2d
1 changed files with 2 additions and 5 deletions

View File

@ -107,12 +107,9 @@ func (req *requestContext) catGenericCommand() []byte {
buffer.Write([]byte(req.cmd))
nargs := len(req.args)
for i, arg := range req.args {
for _, arg := range req.args {
buffer.WriteByte(' ')
buffer.Write(arg)
if i != nargs-1 {
buffer.WriteByte(' ')
}
}
return buffer.Bytes()