mirror of
https://github.com/CDevJoud/Minecraft-Community-Edition.git
synced 2026-07-16 06:31:20 +00:00
Add fatal in switch statement
This commit is contained in:
@@ -59,6 +59,11 @@ namespace mce {
|
||||
color = Color::RED;
|
||||
}
|
||||
break;
|
||||
case Severity::FATAL: {
|
||||
severity = "FATAL";
|
||||
color = Color::RED;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
const std::string file = e.location.file_name();
|
||||
@@ -103,7 +108,7 @@ namespace mce {
|
||||
void Logger::log(const LogLevel level, std::string_view message, const std::source_location& location) {
|
||||
//Check the event queue size and make sure to not accedintly flood it
|
||||
if (Logger::qBus.getQueueSize() >= Logger::MAX_LOG_EVENTS) {
|
||||
return; //Ignore the log
|
||||
return; //Ignore the log
|
||||
}
|
||||
else {
|
||||
event::LoggerOutput lOut;
|
||||
|
||||
Reference in New Issue
Block a user