diff --git a/lightningd/log.c b/lightningd/log.c index abd467134bd6..a443819f2a55 100644 --- a/lightningd/log.c +++ b/lightningd/log.c @@ -540,12 +540,14 @@ static void maybe_print(struct logger *log, const struct log_entry *l) log->log_book->log_files); } +#ifndef NO_NOTIFICATION static void maybe_notify_log(struct logger *log, const struct log_entry *l) { if (l->level >= log->print_level) notify_log(log->log_book->ld, l); } +#endif void logv(struct logger *log, enum log_level level, const struct node_id *node_id, @@ -568,8 +570,9 @@ void logv(struct logger *log, enum log_level level, l->log[i] = '?'; maybe_print(log, l); +#ifndef NO_NOTIFICATION maybe_notify_log(log, l); - +#endif add_entry(log, &l); if (call_notifier)