Some JIT fixes
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Util {
|
||||
enum LogLevel : u8 { Trace, Debug, Warn, Info, Error, Always };
|
||||
|
||||
#ifndef NDEBUG
|
||||
static constexpr auto globalLogLevel = Debug;
|
||||
static constexpr auto globalLogLevel = Trace;
|
||||
#else
|
||||
static constexpr auto globalLogLevel = Info;
|
||||
#endif
|
||||
@@ -24,15 +24,15 @@ void print(const std::string &fmt, Args... args) {
|
||||
fmt::print(fmt::emphasis::bold | fg(fmt::color::red), fmt::runtime(fmt), args...);
|
||||
} else if (messageType == Warn) {
|
||||
fmt::print(fg(fmt::color::yellow), fmt::runtime(fmt), args...);
|
||||
} else if (messageType == Info || messageType == Trace || messageType == Always) {
|
||||
} else if (messageType == Info || messageType == Always) {
|
||||
fmt::print(fmt::runtime(fmt), args...);
|
||||
} else if (messageType == Debug) {
|
||||
} else if (messageType <= Debug) {
|
||||
#ifndef NDEBUG
|
||||
fmt::print(fmt::runtime(fmt), args...);
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
if (messageType == Debug) {
|
||||
if (messageType <= Debug) {
|
||||
#ifndef NDEBUG
|
||||
fmt::print(fmt::runtime(fmt), args...);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user