core: fix git support

This commit is contained in:
Vaxry
2025-04-13 15:28:37 +01:00
parent 6e47605085
commit 9b3fd6efac
4 changed files with 49 additions and 22 deletions

View File

@@ -2,6 +2,7 @@
#include <string>
#include <fmt/format.h>
#include <iostream>
#include "../config/Config.hpp"
enum LogLevel {
NONE = -1,
@@ -19,6 +20,9 @@ namespace Debug {
std::string logMsg = "";
if (g_pConfig && !g_pConfig->m_config.trace_logging && level == TRACE)
return;
switch (level) {
case LOG: logMsg += "[LOG] "; break;
case WARN: logMsg += "[WARN] "; break;