prevent sd logging when in quiet mode (+1 squashed commits)

Squashed commits:

[a4a1cdd5] fixed type conversion
This commit is contained in:
Concedo 2024-03-09 16:20:20 +08:00
parent 4682918965
commit ca19199bc8
4 changed files with 13 additions and 3 deletions

View file

@ -46,6 +46,7 @@ std::string trim(const std::string& s);
void log_message(const char* format, ...);
void set_log_message(bool log);
bool get_log_message();
#define LOG_DEBUG(...) log_message(__VA_ARGS__)
#define LOG_INFO(...) log_message(__VA_ARGS__)
#define LOG_WARN(...) log_message(__VA_ARGS__)