Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit 9496f1d

Browse files
derekwbrownSami Tabet
authored andcommitted
Db/fix logpath again (#291)
* Make changes to various paths to reflect changes in `datadog-agent`library for finding the programdatadir() * Fix log file location (again). Remove printf debugging that was left in there before
1 parent 85b8ccf commit 9496f1d

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

cmd/agent/main_windows.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@ var winopts struct {
3535
}
3636

3737
func init() {
38-
fmt.Printf("main_windows.init()")
3938
pd, err := winutil.GetProgramDataDir()
4039
if err == nil {
4140
defaultConfigPath = filepath.Join(pd, "datadog.yaml")
4241
defaultConfdPath = filepath.Join(pd, "conf.d")
43-
defaultLogFilePath = filepath.Join(pd, "logs", "process.log")
42+
defaultLogFilePath = filepath.Join(pd, "logs", "process-agent.log")
4443
}
4544
}
4645

config/config_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var (
1818

1919
func init() {
2020
if pd, err := winutil.GetProgramDataDir(); err == nil {
21-
defaultLogFilePath = filepath.Join(pd, "Datadog", "logs", "process-agent.log")
21+
defaultLogFilePath = filepath.Join(pd, "logs", "process-agent.log")
2222
}
2323
if _here, err := executable.Folder(); err == nil {
2424
defaultDDAgentBin = filepath.Join(_here, "..", "..", "embedded", "agent.exe")

0 commit comments

Comments
 (0)