From 32939dcb8003f4da13e7a258d6e888966fddb24b Mon Sep 17 00:00:00 2001 From: mitchell Date: Thu, 26 Oct 2023 14:17:26 -0400 Subject: [PATCH] state-svc reports its log file as an absolute, not relative path. --- internal/logging/defaults.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/logging/defaults.go b/internal/logging/defaults.go index 5ef19f38f7..7028281a47 100644 --- a/internal/logging/defaults.go +++ b/internal/logging/defaults.go @@ -72,6 +72,9 @@ func FilePath() string { } func FilePathFor(filename string) string { + if filepath.IsAbs(filename) { + return filename + } return filepath.Join(datadir, "logs", filename) }