diff options
| author | Malkierian <malkierian@gmail.com> | 2025-11-03 18:54:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-03 18:54:01 -0700 |
| commit | cf275b1a6c25a79a96a28cf5d73421d80ee4d15a (patch) | |
| tree | c2b5f7dff876d7ab3302b16a48c765143f9e7995 /soh/include/functions.h | |
| parent | 0014f406762bcbff75b5c69a09a0496050078498 (diff) | |
Implement logger changes (#5914)
* Implement logger changes, and make default log level dynamic based on debug/release.
* Bump LUS.
* typo
Co-authored-by: Eblo <7004497+Eblo@users.noreply.github.com>
---------
Co-authored-by: Eblo <7004497+Eblo@users.noreply.github.com>
Diffstat (limited to 'soh/include/functions.h')
| -rw-r--r-- | soh/include/functions.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/soh/include/functions.h b/soh/include/functions.h index 9d96a3c8b..11dbf8c81 100644 --- a/soh/include/functions.h +++ b/soh/include/functions.h @@ -13,8 +13,8 @@ extern "C" #include <libultraship/log/luslog.h> #include <soh/Enhancements/item-tables/ItemTableTypes.h> -#if defined(INCLUDE_GAME_PRINTF) && defined(_DEBUG) -#define osSyncPrintf(fmt, ...) lusprintf(__FILE__, __LINE__, 0, fmt, ##__VA_ARGS__) +#if (LOG_LEVEL_GAME_PRINTS >= SPDLOG_ACTIVE_LEVEL) && !(LOG_LEVEL_GAME_PRINTS >= 6) +#define osSyncPrintf(...) lusprintf(__FILE__, __LINE__, LOG_LEVEL_GAME_PRINTS , __VA_ARGS__) #else #define osSyncPrintf(fmt, ...) osSyncPrintfUnused(fmt, ##__VA_ARGS__) #endif |
