cmd/tailscaled: remove a redundant date prefix on Windows logs

Change-Id: I28e122d4384697f51a748d67829409276c00b11e
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2021-11-18 10:13:21 -08:00 committed by Brad Fitzpatrick
parent 49a3fcae78
commit 0653efb092

View File

@ -75,7 +75,11 @@ func (service *ipnService) Execute(args []string, r <-chan svc.ChangeRequest, ch
go func() { go func() {
defer close(doneCh) defer close(doneCh)
args := []string{"/subproc", service.Policy.PublicID.String()} args := []string{"/subproc", service.Policy.PublicID.String()}
ipnserver.BabysitProc(ctx, args, log.Printf) // Make a logger without a date prefix, as filelogger
// and logtail both already add their own. All we really want
// from the log package is the automatic newline.
logger := log.New(os.Stderr, "", 0)
ipnserver.BabysitProc(ctx, args, logger.Printf)
}() }()
changes <- svc.Status{State: svc.Running, Accepts: svcAccepts} changes <- svc.Status{State: svc.Running, Accepts: svcAccepts}