2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-07 07:03:12 +08:00

fix: lint

This commit is contained in:
耗子
2024-09-28 10:07:45 +08:00
parent 051b6b9227
commit b0e577b42a
13 changed files with 99 additions and 101 deletions

View File

@@ -144,8 +144,8 @@ func (s *Service) Log(w http.ResponseWriter, r *http.Request) {
// ClearLog 清空日志
func (s *Service) ClearLog(w http.ResponseWriter, r *http.Request) {
if out, err := shell.Execf("rm -rf %s/server/postgresql/logs/postgresql-*.log", panel.Root); err != nil {
service.Error(w, http.StatusInternalServerError, out)
if _, err := shell.Execf("rm -rf %s/server/postgresql/logs/postgresql-*.log", panel.Root); err != nil {
service.Error(w, http.StatusInternalServerError, err.Error())
return
}