query-logging would only be taken into account after the first direct
(DNS) query; getAllDomains and other calls before the first query would
not get the logging. Problematic when the backend instances are
short-lived.
string format;
char output[1024];
- d_db->setLog(::arg().mustDo("query-logging"));
-
string lcqname=toLower(qname);
// lcqname=labelReverse(makeRelative(lcqname, "net"));
#include <string>
#include <map>
#include "ssql.hh"
+#include "pdns/arguments.hh"
#include "../../namespaces.hh"
void setDB(SSql *db)
{
d_db=db;
+ if (d_db) {
+ d_db->setLog(::arg().mustDo("query-logging"));
+ }
}
virtual string sqlEscape(const string &name);