logtail: return correct write size from logger.Write

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-07-25 12:40:18 +02:00
committed by Brad Fitzpatrick
parent 38b0c3eea2
commit bca9fe35ba
2 changed files with 17 additions and 1 deletions
+2 -1
View File
@@ -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
}