From a659318a501ba8dfa1dbcaa1d3a60d1eacd7f31e Mon Sep 17 00:00:00 2001 From: "Harrison (Harry) Cramer" <32515581+harrisoncramer@users.noreply.github.com> Date: Wed, 3 Apr 2024 12:42:54 -0400 Subject: [PATCH] Fix log path (#237) Fixes an issue where the debug path for the Go server was not writing to the right location on disk --- cmd/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/client.go b/cmd/client.go index 2694591..6ce0972 100644 --- a/cmd/client.go +++ b/cmd/client.go @@ -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) {