]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Apply suggestions from code review
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 20 Mar 2024 15:01:00 +0000 (16:01 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Mar 2024 15:01:00 +0000 (16:01 +0100)
Co-authored-by: Fred Morcos <fm@fredmorcos.com>
pdns/recursordist/rec-main.cc
pdns/recursordist/settings/table.py

index 7b334f01010d7e601af6067936ab9af1458630a5..d7f98298bf0f8ce0e61920255c3c1e7ed81f0c57 100644 (file)
@@ -3040,13 +3040,13 @@ static void setupLogging(const string& logname)
     }
 #endif
     if (g_slog == nullptr) {
-      cerr << "Structured logging to systemd-journal requested but it is not available" << endl;
+      cerr << "Requested structured logging to systemd-journal, but it is not available" << endl;
     }
   }
   else if (logname == "json") {
     g_slog = Logging::Logger::create(loggerJSONBackend);
     if (g_slog == nullptr) {
-      cerr << "JSON logging to requested but it is not available" << endl;
+      cerr << "JSON logging requested but it is not available" << endl;
     }
   }
 
index 8f92f630ad7d13532a3cf84b54e8273e890f3aa8..145248439fb27add436b1baa210eac7c830b8dc2 100644 (file)
@@ -2670,7 +2670,7 @@ Available backends are:
 - ``default``: use the traditional logging system to output structured logging information.
 - ``systemd-journal``: use systemd-journal.
   When using this backend, provide ``-o verbose`` or simular output option to ``journalctl`` to view the full information.
-- ``json``: JSON objects are written to the standard error stream
+- ``json``: JSON objects are written to the standard error stream.
 
 See :doc:`appendices/structuredlogging` for more details.
  ''',