From: Otto Moerbeek Date: Fri, 8 Mar 2019 09:11:51 +0000 (+0100) Subject: Don't use doLog.hh in recursor, ifdef around it. X-Git-Tag: dnsdist-1.4.0-beta1~13^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0f0ed4dc8df752e97d8506a59d0a708a052c05f;p=thirdparty%2Fpdns.git Don't use doLog.hh in recursor, ifdef around it. --- diff --git a/pdns/fstrm_logger.cc b/pdns/fstrm_logger.cc index 7df889b049..62ccd72ebd 100644 --- a/pdns/fstrm_logger.cc +++ b/pdns/fstrm_logger.cc @@ -3,7 +3,12 @@ #include "config.h" #include "fstrm_logger.hh" + +#ifdef RECURSOR +#include "logger.hh" +#else #include "dolog.hh" +#endif #define DNSTAP_CONTENT_TYPE "protobuf:dnstap.Dnstap" @@ -176,7 +181,11 @@ void FrameStreamLogger::queueData(const std::string& data) } uint8_t *frame = (uint8_t*)malloc(data.length()); if (!frame) { +#ifdef RECURSOR + g_log<