Skip to content

Commit e399f0f

Browse files
Gustedlunny
Gusted
andauthored
Don't buffer doctor logger (#19982)
- We don't need to buffer the logger with a thousand capacity. It's not a high-throughput logger, this also caused issue whereby the logger can't keep up with repeated messages being send(somehow they are lost in the queue?). - Resolves #19969 Co-authored-by: Lunny Xiao <[email protected]>
1 parent b01dce2 commit e399f0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/doctor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func runDoctor(ctx *cli.Context) error {
203203

204204
// Now we can set up our own logger to return information about what the doctor is doing
205205
if err := log.NewNamedLogger("doctorouter",
206-
1000,
206+
0,
207207
"console",
208208
"console",
209209
fmt.Sprintf(`{"level":"INFO","stacktracelevel":"NONE","colorize":%t,"flags":-1}`, colorize)); err != nil {

0 commit comments

Comments
 (0)