aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-09-06 22:46:20 +0800
committerGitHub <noreply@github.com>2021-09-06 16:46:20 +0200
commita807031a3093964387171a5bb07cc2c9181f0444 (patch)
tree01143ab519c89cb857c71f458be376558f9758c7 /cmd
parent82da380af73cba733f15f12f12807a12f8efcc56 (diff)
downloadgitea-a807031a3093964387171a5bb07cc2c9181f0444.tar.gz
gitea-a807031a3093964387171a5bb07cc2c9181f0444.zip
Fix storage Iterate bug and Add storage doctor to delete garbage attachments (#16971)
* Fix storage Iterate bug and Add storage doctor to delete garbage attachments * Close object when used
Diffstat (limited to 'cmd')
-rw-r--r--cmd/doctor.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/cmd/doctor.go b/cmd/doctor.go
index 0152aebe39..2e79275434 100644
--- a/cmd/doctor.go
+++ b/cmd/doctor.go
@@ -124,7 +124,6 @@ func runRecreateTable(ctx *cli.Context) error {
}
func runDoctor(ctx *cli.Context) error {
-
// Silence the default loggers
log.DelNamedLogger("console")
log.DelNamedLogger(log.DEFAULT)