Fix log path (#237)

Fixes an issue where the debug path for the Go server was not writing to the right location on disk
This commit is contained in:
Harrison (Harry) Cramer
2024-04-03 12:42:54 -04:00
committed by GitHub
parent 4f1fe4ae25
commit a659318a50

View File

@@ -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) {