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) }