diff --git a/handler/restart/restart.go b/handler/restart/restart.go index 735fa51..b80f9ab 100644 --- a/handler/restart/restart.go +++ b/handler/restart/restart.go @@ -169,6 +169,7 @@ func buildBot() error { func PullCodeHandler(c *gin.Context) { err := util.GitPull() + log.Println("拉取代码...") if err != nil { c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) } @@ -177,6 +178,7 @@ func PullCodeHandler(c *gin.Context) { func BuildBotHandler(c *gin.Context) { err := buildBot() + log.Println("构建程序...") if err != nil { c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) } @@ -185,6 +187,7 @@ func BuildBotHandler(c *gin.Context) { func RestartBotHandler(c *gin.Context) { err := restartProgram() + log.Println("重启程序...") if err != nil { c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) }