mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 11:46:27 +00:00
fix enabling rust logs on boot
This commit is contained in:
parent
ac40cd1aa2
commit
fb0a4da6d0
1 changed files with 11 additions and 11 deletions
|
@ -183,6 +183,17 @@ LogManager::LogManager()
|
||||||
// Set up log listeners
|
// Set up log listeners
|
||||||
LogLevel verbosity = Config::Get(LOGGER_VERBOSITY);
|
LogLevel verbosity = Config::Get(LOGGER_VERBOSITY);
|
||||||
|
|
||||||
|
SetLogLevel(verbosity);
|
||||||
|
EnableListener(LogListener::FILE_LISTENER, Config::Get(LOGGER_WRITE_TO_FILE));
|
||||||
|
EnableListener(LogListener::CONSOLE_LISTENER, Config::Get(LOGGER_WRITE_TO_CONSOLE));
|
||||||
|
EnableListener(LogListener::LOG_WINDOW_LISTENER, Config::Get(LOGGER_WRITE_TO_WINDOW));
|
||||||
|
|
||||||
|
for (auto& container : m_log)
|
||||||
|
{
|
||||||
|
container.m_enable = Config::Get(
|
||||||
|
Config::Info<bool>{{Config::System::Logger, "Logs", container.m_short_name}, false});
|
||||||
|
}
|
||||||
|
|
||||||
// SLIPPITODO: this section ideally should be less awkward
|
// SLIPPITODO: this section ideally should be less awkward
|
||||||
for (int log_type = static_cast<int>(LogType::SLIPPI);
|
for (int log_type = static_cast<int>(LogType::SLIPPI);
|
||||||
log_type != static_cast<int>(LogType::NUMBER_OF_LOGS); log_type++)
|
log_type != static_cast<int>(LogType::NUMBER_OF_LOGS); log_type++)
|
||||||
|
@ -195,17 +206,6 @@ LogManager::LogManager()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SetLogLevel(verbosity);
|
|
||||||
EnableListener(LogListener::FILE_LISTENER, Config::Get(LOGGER_WRITE_TO_FILE));
|
|
||||||
EnableListener(LogListener::CONSOLE_LISTENER, Config::Get(LOGGER_WRITE_TO_CONSOLE));
|
|
||||||
EnableListener(LogListener::LOG_WINDOW_LISTENER, Config::Get(LOGGER_WRITE_TO_WINDOW));
|
|
||||||
|
|
||||||
for (auto& container : m_log)
|
|
||||||
{
|
|
||||||
container.m_enable = Config::Get(
|
|
||||||
Config::Info<bool>{{Config::System::Logger, "Logs", container.m_short_name}, false});
|
|
||||||
}
|
|
||||||
|
|
||||||
m_path_cutoff_point = DeterminePathCutOffPoint();
|
m_path_cutoff_point = DeterminePathCutOffPoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue