core: fix git support
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user