Skip to content

Commit

Permalink
Fix log path (#237)
Browse files Browse the repository at this point in the history
Fixes an issue where the debug path for the Go server was not writing to the right location on disk
  • Loading branch information
harrisoncramer authored Apr 3, 2024
1 parent 4f1fe4a commit a659318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ var responseLogger retryablehttp.ResponseLogHook = func(l retryablehttp.Logger,
}

func openLogFile() *os.File {
logFile := os.Args[len(os.Args)-1]
logFile := os.Args[5]
file, err := os.OpenFile(logFile, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
if os.IsNotExist(err) {
Expand Down

0 comments on commit a659318

Please sign in to comment.