summaryrefslogtreecommitdiffhomepage
path: root/control/controlclient
diff options
context:
space:
mode:
authorAaron Klotz <aaron@tailscale.com>2021-12-15 11:43:40 -0700
committerAaron Klotz <aaron@tailscale.com>2021-12-15 13:05:14 -0700
commit96188ffd2fb3f14fbe3088603a89c6b283c9e2d8 (patch)
tree4c76e937bc77e1de1f3700b9eab9c2adaf0a35c2 /control/controlclient
parent486059589b905719f8bb20c2da36b42ab517c697 (diff)
downloadtailscale-aaron/loglog.tar.xz
tailscale-aaron/loglog.zip
ipn/ipnserver, log/filelogger, logpolicy: when tailscaled is running as a windows service, ensure the service's log messages are written to fileaaron/loglog
This patch moves the Windows-only initialization of the filelogger into logpolicy. Previously we only did it when babysitting the tailscaled subprocess, but this meant that log messages from the service itself never made it to disk. This meant that if logtail could not dial out, its log messages would be lost. I modified filelogger.New to work a bit differently and added a `maybeWrapForPlatform` to logpolicy to ensure that the filelogger is plugged in front of logtail ASAP. Fixes https://github.com/tailscale/tailscale/issues/3570 Signed-off-by: Aaron Klotz <aaron@tailscale.com>
Diffstat (limited to 'control/controlclient')
0 files changed, 0 insertions, 0 deletions