]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Disabling structured logging is deprecated 13567/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 5 Dec 2023 13:26:14 +0000 (14:26 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 5 Dec 2023 13:33:15 +0000 (14:33 +0100)
pdns/recursordist/rec-main.cc
pdns/recursordist/settings/table.py

index ed853cfbacdf0f8230ba0ae986f9fe432f3df342..cec1d82815d57716a96b6a90b620f9f91e1632ca 100644 (file)
@@ -3009,6 +3009,9 @@ int main(int argc, char** argv)
     g_log.setLoglevel(s_logUrgency);
     g_log.toConsole(s_logUrgency);
     showProductVersion();
+    if (!g_slogStructured) {
+      g_log << Logger::Warning << "Disabling structured logging is deprecated, old-style logging wil be removed in a future release" << endl;
+    }
 
     g_yamlSettings = false;
     string configname = ::arg()["config-dir"] + "/recursor";
index 75158bc495906426cdaf98fa4331fa3f9a3b8f85..c558a6badaa75f2705817e9e4d86003c457b7a61 100644 (file)
@@ -2570,7 +2570,8 @@ A sequence of statistic names, that are prevented from being exported via SNMP,
         'doc' : '''
 Prefer structured logging when both an old style and a structured log messages is available.
  ''',
-    'versionadded': '4.6.0'
+        'versionadded': '4.6.0',
+        'versionchanged': ('5.0.0', 'Disabling structured logging is deprecated'),
     },
     {
         'name' : 'structured_logging_backend',