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