forked from mirror/ledisdb
modify accesslog format
This commit is contained in:
parent
9c5ade8ee3
commit
9ad7095e2d
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue