Skip to content

Commit

Permalink
filter console only output when using journal mode
Browse files Browse the repository at this point in the history
Fixes #281
  • Loading branch information
nhorman committed Nov 30, 2023
1 parent d08fb4d commit f3282f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion irqbalance.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ extern unsigned int log_mask;
#ifdef HAVE_LIBSYSTEMD
#define log(mask, lvl, fmt, args...) do { \
if (journal_logging) { \
sd_journal_print(lvl, fmt, ##args); \
if (log_mask & mask & TO_SYSLOG) \
sd_journal_print(lvl, fmt, ##args); \
if (log_mask & mask & TO_CONSOLE) \
printf(fmt, ##args); \
} else { \
Expand Down

0 comments on commit f3282f4

Please sign in to comment.