Skip to content

Commit

Permalink
Properly compare against current log level
Browse files Browse the repository at this point in the history
  • Loading branch information
F0bes authored and kinetiknz committed Oct 18, 2022
1 parent 6b474ee commit 27d2a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cubeb_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ cubeb_async_log_reset_threads(void);

#define LOG_INTERNAL(level, fmt, ...) \
do { \
if (cubeb_log_get_level() <= level && cubeb_log_get_callback()) { \
if (cubeb_log_get_level() >= level && cubeb_log_get_callback()) { \
cubeb_log_internal(__FILENAME__, __LINE__, fmt, ##__VA_ARGS__); \
} \
} while (0)

#define ALOG_INTERNAL(level, fmt, ...) \
do { \
if (cubeb_log_get_level() <= level && cubeb_log_get_callback()) { \
if (cubeb_log_get_level() >= level && cubeb_log_get_callback()) { \
cubeb_async_log(fmt, ##__VA_ARGS__); \
} \
} while (0)
Expand Down

0 comments on commit 27d2a10

Please sign in to comment.