Fix debug log

This commit is contained in:
Tixx 2024-10-04 23:19:26 +02:00
parent d26e0320e4
commit c99fecfa1c

View File

@ -55,10 +55,8 @@ void info(const std::string& toPrint) {
addToLog(Print); addToLog(Print);
} }
void debug(const std::string& toPrint) { void debug(const std::string& toPrint) {
if (!options.verbose)
return;
std::string Print = getDate() + "[DEBUG] " + toPrint + "\n"; std::string Print = getDate() + "[DEBUG] " + toPrint + "\n";
if (Dev) { if (options.verbose) {
std::cout << Print; std::cout << Print;
} }
addToLog(Print); addToLog(Print);