added debug:disable_logs

This commit is contained in:
vaxerski
2022-07-01 15:57:56 +02:00
parent 1750a7cdbb
commit 868e0f48d0
3 changed files with 7 additions and 0 deletions

View File

@@ -14,6 +14,9 @@ void Debug::init(std::string IS) {
void Debug::log(LogLevel level, const char* fmt, ...) {
if (disableLogs && *disableLogs)
return;
// log to a file
std::ofstream ofs;
ofs.open(logFile, std::ios::out | std::ios::app);