diff --git a/git_hook.go b/git_hook.go index ffd0b1a..dac4bbf 100644 --- a/git_hook.go +++ b/git_hook.go @@ -9,6 +9,7 @@ package main import ( "encoding/json" + "fmt" "time" "git.zhangdeman.cn/zhangdeman/gopkg/cmd" @@ -37,6 +38,8 @@ func main() { panic("任务配置文件读取失败 : " + err.Error()) } + fmt.Println("读取到的任务配置 : " + string(byteData)) + if err = json.Unmarshal(byteData, &TaskList); nil != err { panic("任务配置文件解析失败 : " + err.Error()) }