From 0461e01a6009b7cca6d5c2be4813865e19dff0d4 Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Sun, 11 Sep 2022 04:30:27 -0700 Subject: [PATCH] Fix: log directory --- .gitignore | 1 + internal/config/defaults.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3e36b42..f02ae64 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ HellPot *.save *.toml *.yaml +.backups/ diff --git a/internal/config/defaults.go b/internal/config/defaults.go index 6a5103c..ab18197 100644 --- a/internal/config/defaults.go +++ b/internal/config/defaults.go @@ -14,7 +14,7 @@ func init() { if home, err = os.UserHomeDir(); err != nil { panic(err) } - defOpts["logger"]["directory"] = path.Join(home, ".local", "share", Title+"logs") + defOpts["logger"]["directory"] = path.Join(home, ".local", "share", Title, "logs") prefConfigLocation = path.Join(home, ".config", Title) }