From 45520c951351fe973a83cbe8d20563b19ed32406 Mon Sep 17 00:00:00 2001 From: Daniel Prows Date: Wed, 9 Aug 2023 20:33:24 -0600 Subject: [PATCH] update logging to put all logs in one folder --- src/logging/logging.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/logging/logging.go b/src/logging/logging.go index 764fd0d..f05a5f1 100644 --- a/src/logging/logging.go +++ b/src/logging/logging.go @@ -20,8 +20,9 @@ func directory() string { // Enable turns logging on for the StreamDeck API client as well as the global // log object. It sends both to a temp file that contains .log. func Enable() { + os.Mkdir("./logs/", 0775) d := directory() - f, err := os.CreateTemp("./", fmt.Sprintf("%s.log", d)) + f, err := os.CreateTemp("./logs/", fmt.Sprintf("%s.log", d)) if err != nil { log.Fatalf("error creating temp file: %v", err) }