added debug:disable_logs
This commit is contained in:
parent
1750a7cdbb
commit
868e0f48d0
3 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue