aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ringlogger/ringlogger.go
diff options
context:
space:
mode:
Diffstat (limited to 'ringlogger/ringlogger.go')
-rw-r--r--ringlogger/ringlogger.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ringlogger/ringlogger.go b/ringlogger/ringlogger.go
index 2d7c0c8f..443e1848 100644
--- a/ringlogger/ringlogger.go
+++ b/ringlogger/ringlogger.go
@@ -136,7 +136,7 @@ func (rl *Ringlogger) Write(p []byte) (n int, err error) {
textLen := 3 + len(p) + len(rl.tag)
if textLen > maxLogLineLength-1 {
p = p[:maxLogLineLength-1-3-len(rl.tag)]
- textLen = maxLogLineLength-1
+ textLen = maxLogLineLength - 1
}
line.line[textLen] = 0
line.line[0] = 0 // Null out the beginning and only let it extend after the other writes have completed