Skip to content

Commit

Permalink
golang 模块错误
Browse files Browse the repository at this point in the history
  • Loading branch information
wzzst310 committed May 6, 2021
1 parent 54a3365 commit 3b74584
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 02liwenzhou/101logagent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ func main() {
fmt.Printf("init Kafka failed, err:%v\n", err)
return
}
fmt.Println("init kafka success")
// 2. 打开日志文件准备日志
err = taillog.Init("./my.log")
if err != nil {
fmt.Printf("Init taillog failed, err:%v\n", err)
return
}
fmt.Println("init taillog success")
run()
}

0 comments on commit 3b74584

Please sign in to comment.