we gotta move this to a sane location

This commit is contained in:
2025-12-14 15:53:01 +01:00
parent 7aa4c13824
commit dcd338ac75

View File

@@ -6,6 +6,8 @@
#ifdef log
#include <zlib.h>
#define LOG_FILE_LOCATION "linuxSmartie.log.gz"
#include <chrono>
#include <mutex>
#include <print>
@@ -55,7 +57,7 @@ inline void _log(LOG level, std::string_view tag, std::format_string<Args...> st
std::format_to(std::back_inserter(msg), str, std::forward<Args>(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);