From: Remi Gacogne Date: Wed, 1 Jun 2022 15:21:23 +0000 (+0200) Subject: dolog: Handle the non-dnsdist and non-recursor case X-Git-Tag: auth-4.8.0-alpha0~78^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bc5f879975681673398eff7d0ab4d63f13c77eb2;p=thirdparty%2Fpdns.git dolog: Handle the non-dnsdist and non-recursor case --- 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