@@ -9,6 +9,7 @@ package other
import (
"github.com/gin-gonic/gin"
+ "mtp2_if/logger"
"net/http"
"os"
"os/exec"
@@ -30,6 +31,7 @@ func MakeUpdateScript(c *gin.Context) {
c.String(http.StatusOK, "windows不支持, 仅支持linux下执行")
return
}
+ logger.GetLogger().Debug("\n*********************auto update*******************************")
IsUpdateing = true
defer func() {
IsUpdateing = false