]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix VLOG in !rec case, gcc does not like #define X #error ...
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 17 Jan 2023 14:14:45 +0000 (15:14 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 18 Jan 2023 12:39:51 +0000 (13:39 +0100)
pdns/logger.hh

index 2f24bdf9cd54c71d9dcd8f685e10edb9cb5333f4..bbbc8cd50bc1403e94ceab280ee5eac0b7bd769f 100644 (file)
@@ -169,7 +169,7 @@ Logger& getLogger();
 
 // The types below are used by rec, which can log to g_log (general logging) or a string stream
 // (trace-regexp). We feed an OptLog object to the code that should not know anything about this
-// That code shold then log using VLOG
+// That code should then log using VLOG
 
 struct LogVariant
 {
@@ -182,7 +182,7 @@ using OptLog = std::optional<LogVariant>;
 
 #ifndef RECURSOR
 // Originally there was a flag but is was never set from !RECURSOR
-#define VLOG(log, x) #error VLOG only works in recursor
+#define VLOG(log, x) VLOG only works in recursor
 #else
 #define VLOG(log, x)                                                       \
   if (log) {                                                               \