diff options
| author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2023-11-08 11:48:36 -0800 |
|---|---|---|
| committer | Brad Fitzpatrick <brad@danga.com> | 2023-11-08 11:57:15 -0800 |
| commit | d852c616c6047f711197f376b7f3b3927ddf68d6 (patch) | |
| tree | 2163986e1da2c6dd31f11dee2a3f9a5b9e54eb8f /control/controlknobs/controlknobs.go | |
| parent | 11a20f371a7b88c1511eebb4cf5a2b86c61f1622 (diff) | |
| download | tailscale-d852c616c6047f711197f376b7f3b3927ddf68d6.tar.xz tailscale-d852c616c6047f711197f376b7f3b3927ddf68d6.zip | |
logtail: fix Logger.Write return result
io.Writer says you need to write completely on err=nil. (the result
int should be the same as the input buffer length)
We weren't doing that. We used to, but at some point the verbose
filtering was modifying buf before the final return of len(buf).
We've been getting lucky probably, that callers haven't looked at our
results and turned us into a short write error.
Updates #cleanup
Updates tailscale/corp#15664
Change-Id: I01e765ba35b86b759819e38e0072eceb9d10d75c
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions
