diff options
Diffstat (limited to 'modules/log/writer.go')
-rw-r--r-- | modules/log/writer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/log/writer.go b/modules/log/writer.go index e8d06b67ab..1c4f5b4a19 100644 --- a/modules/log/writer.go +++ b/modules/log/writer.go @@ -189,7 +189,7 @@ func (logger *WriterLogger) createMsg(buf *[]byte, event *Event) { *buf = append(*buf, ' ') } - var msg = []byte(event.msg) + msg := []byte(event.msg) if len(msg) > 0 && msg[len(msg)-1] == '\n' { msg = msg[:len(msg)-1] } |