aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/doctor.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/doctor.go')
-rw-r--r--cmd/doctor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/doctor.go b/cmd/doctor.go
index b79436fc0a..cd5f125e20 100644
--- a/cmd/doctor.go
+++ b/cmd/doctor.go
@@ -151,7 +151,7 @@ func setupDoctorDefaultLogger(ctx *cli.Context, colorize bool) {
log.FallbackErrorf("unable to create file log writer: %v", err)
return
}
- log.GetManager().GetLogger(log.DEFAULT).RemoveAllWriters().AddWriters(writer)
+ log.GetManager().GetLogger(log.DEFAULT).ReplaceAllWriters(writer)
}
}