删除调试代码

pull/21/merge
ouqiang 2017-04-03 18:00:32 +08:00
parent 26d5c1cba9
commit dc478dd1e6
2 changed files with 1 additions and 3 deletions

View File

@ -15,7 +15,7 @@ import (
type InstallForm struct {
DbType string `binding:"IN(mysql)"`
DbHost string `binding:"Required"`
DbPort int `binding:"Required"` // todo 限制端口范围1-65535, 为什么规则未生效?
DbPort int `binding:"Required;Range(1-65535)"` // todo 限制端口范围1-65535, 为什么规则未生效?
DbUsername string `binding:"Required"`
DbPassword string `binding:"Required"`
DbName string `binding:"Required"`

View File

@ -1,7 +1,6 @@
package service
import (
"fmt"
"github.com/ouqiang/cron-scheduler/models"
"github.com/ouqiang/cron-scheduler/modules/ansible"
"github.com/ouqiang/cron-scheduler/modules/crontask"
@ -131,7 +130,6 @@ func createTaskLog(taskId int) (int, error) {
}
func updateTaskLog(taskLogId int, result string, err error) (int64, error) {
fmt.Println(taskLogId)
taskLogModel := new(models.TaskLog)
var status models.Status
if err != nil {