logtail: return correct write size from logger.Write
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
38b0c3eea2
commit
bca9fe35ba
+2
-1
@@ -462,5 +462,6 @@ func (l *logger) Write(buf []byte) (int, error) {
|
||||
}
|
||||
}
|
||||
b := l.encode(buf)
|
||||
return l.send(b)
|
||||
_, err := l.send(b)
|
||||
return len(buf), err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user