From bc5f879975681673398eff7d0ab4d63f13c77eb2 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 1 Jun 2022 17:21:23 +0200 Subject: [PATCH] dolog: Handle the non-dnsdist and non-recursor case --- pdns/dolog.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pdns/dolog.hh b/pdns/dolog.hh index e363eff83d..1767cd4c03 100644 --- a/pdns/dolog.hh +++ b/pdns/dolog.hh @@ -122,12 +122,16 @@ void genlog(std::ostream& stream, int level, bool doSyslog, const char* s, Args. template void verboselog(const char* s, Args... args) { +#ifdef DNSDIST if (g_verboseStream) { genlog(*g_verboseStream, LOG_DEBUG, false, s, args...); } else { +#endif /* DNSDIST */ genlog(std::cout, LOG_DEBUG, g_syslog, s, args...); +#ifdef DNSDIST } +#endif /* DNSDIST */ } #define vinfolog if (g_verbose) verboselog -- 2.47.2