we gotta move this to a sane location
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user