mirror of
https://github.com/acepanel/panel.git
synced 2026-02-07 07:03:12 +08:00
fix: lint
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user