Skip to content

Commit

Permalink
state-svc reports its log file as an absolute, not relative path.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-as committed Oct 26, 2023
1 parent 0d01e1a commit 32939dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/logging/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ func FilePath() string {
}

func FilePathFor(filename string) string {
if filepath.IsAbs(filename) {
return filename
}
return filepath.Join(datadir, "logs", filename)
}

Expand Down

0 comments on commit 32939dc

Please sign in to comment.