Skip to content

Commit

Permalink
avoid checking log severity before internal mod is setup
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Jan 15, 2025
1 parent c04bcaa commit 8ef7ede
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions loader/src/platform/mac/LoaderImpl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,6 @@
}

s_isOpen = true;

Severity consoleLevel = log::Logger::get()->getConsoleLogLevel();

for (auto const& log : log::Logger::get()->list()) {
if (log.getSeverity() >= consoleLevel) {
console::log(log.toString(), log.getSeverity());
}
}
}

CFDataRef msgPortCallback(CFMessagePortRef port, SInt32 messageID, CFDataRef data, void* info) {
Expand Down
8 changes: 0 additions & 8 deletions loader/src/platform/windows/console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ void setupConsole(bool forceUseEscapeCodes = false) {
SetConsoleCursorPosition(s_outHandle, preInfo.dwCursorPosition);
}
}

Severity consoleLevel = log::Logger::get()->getConsoleLogLevel();

for (auto const& log : log::Logger::get()->list()) {
if (log.getSeverity() >= consoleLevel) {
console::log(log.toString(), log.getSeverity());
}
}
}

struct stdData {
Expand Down

0 comments on commit 8ef7ede

Please sign in to comment.