mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix incorrect priority filtering. Move ??? to features.
This commit is contained in:
@@ -137,7 +137,7 @@ macro void init()
|
||||
fn void call_log(LogPriority prio, LogCategory category, String fmt, args...)
|
||||
{
|
||||
LogPriority priority = mem::@atomic_load(config_priorities[category], UNORDERED);
|
||||
if (priority < prio) return;
|
||||
if (priority > prio) return;
|
||||
init();
|
||||
bool locked = logger_mutex.is_initialized() && @ok(logger_mutex.lock());
|
||||
Logger logger = current_logger;
|
||||
|
||||
Reference in New Issue
Block a user