fix first debug log messages being dropped

This commit is contained in:
PancakeTAS 2025-07-07 03:01:39 +02:00
parent a9452ab198
commit 77a8c5bbfc
No known key found for this signature in database

View file

@ -64,6 +64,7 @@ void debug(std::string_view, std::format_string<Args...>, Args&&...) {} // NOLIN
#else
template<typename... Args>
void debug(std::string_view module, std::format_string<Args...> fmt, Args&&... args) {
Internal::setup();
if (Internal::debugAllModules || Internal::debugModules.contains(std::string(module)))
log(GRAY, module, fmt, std::forward<Args>(args)...);
}