From dcd338ac75cc0edc10b7fb7a523e89634cafa79e Mon Sep 17 00:00:00 2001 From: Drath Date: Sun, 14 Dec 2025 15:53:01 +0100 Subject: [PATCH] we gotta move this to a sane location --- include/log.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/log.hpp b/include/log.hpp index f77d541..6955cdf 100644 --- a/include/log.hpp +++ b/include/log.hpp @@ -6,6 +6,8 @@ #ifdef log #include +#define LOG_FILE_LOCATION "linuxSmartie.log.gz" + #include #include #include @@ -55,7 +57,7 @@ inline void _log(LOG level, std::string_view tag, std::format_string st std::format_to(std::back_inserter(msg), str, std::forward(args)...); // actual log message std::scoped_lock lock (fmtx); - gzFile file = gzopen("linuxSmartie.log.gz", "ab"); + gzFile file = gzopen(LOG_FILE_LOCATION, "ab"); if (file) { gzprintf(file, "%s\n", msg.c_str()); gzclose(file);