Skip to content

Commit

Permalink
Merge pull request #698 from tanxiao1990/win-pr
Browse files Browse the repository at this point in the history
refactor: app log for windows
  • Loading branch information
kongfei605 committed Oct 27, 2023
2 parents 894a6b0 + 5e67722 commit b6005f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main_windows.go
Expand Up @@ -31,7 +31,7 @@ var (

func runAgent(ag *agent.Agent) {
if !winsvc.IsAnInteractiveSession() {
initLog("categraf.log")
initLog(config.Config.Log.FileName)

if err := winsvc.RunAsService(*flagWinSvcName, ag.Start, ag.Stop, false); err != nil {
log.Fatalln("F! failed to run windows service:", err)
Expand Down

0 comments on commit b6005f0

Please sign in to comment.