summaryrefslogtreecommitdiffstats
path: root/cmd/doctor.go
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-06-16 11:10:33 +0200
committerGitHub <noreply@github.com>2022-06-16 17:10:33 +0800
commite399f0f5b4661ac71bcf4f8badcd04d73b71a640 (patch)
tree8b857423a1ef5d5dfff622e79d726d6c4a46ad97 /cmd/doctor.go
parentb01dce2a6e98c25915a8e98afb741a1c34d05aba (diff)
downloadgitea-e399f0f5b4661ac71bcf4f8badcd04d73b71a640.tar.gz
gitea-e399f0f5b4661ac71bcf4f8badcd04d73b71a640.zip
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 <xiaolunwen@gmail.com>
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 73dfeb1dbe..3f16c6e2a6 100644
--- a/cmd/doctor.go
+++ b/cmd/doctor.go
@@ -203,7 +203,7 @@ func runDoctor(ctx *cli.Context) error {
// Now we can set up our own logger to return information about what the doctor is doing
if err := log.NewNamedLogger("doctorouter",
- 1000,
+ 0,
"console",
"console",
fmt.Sprintf(`{"level":"INFO","stacktracelevel":"NONE","colorize":%t,"flags":-1}`, colorize)); err != nil {