]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
move error's content and fix typos 10160/head
authorCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Fri, 18 Jun 2021 09:46:09 +0000 (11:46 +0200)
committerCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Fri, 18 Jun 2021 09:46:09 +0000 (11:46 +0200)
pdns/recursordist/logging.cc
pdns/recursordist/logr.hh

index 840f786e93b23998c997b4c505ec282d03f4d6ed..ace669f0ed5613743027dcef24517d28c017b4b3 100644 (file)
@@ -63,7 +63,7 @@ void Logger::logMessage(const std::string& msg, Logr::Priority p, boost::optiona
   Utility::gettimeofday(&entry.d_timestamp);
   entry.name = _name;
   entry.message = msg;
-  entry.error = err;
+  entry.error = std::move(err);
   auto parent = _parent;
   entry.values.insert(_values.begin(), _values.end());
   while (parent) {
index ff2da228c7a6bfbbb069743d02d94670a8d99b3d..22a0a6f37fa6f87041d6d56f6aae3e08afd30ebd 100644 (file)
@@ -35,12 +35,12 @@ struct Loggable
 };
 
 // In addition to level which specifies the amount of detail and is
-// structered so that a derived logger always has a higher level
+// structured so that a derived logger always has a higher level
 // than its parent we also have a priority/urgency field that maps
 // to the same field of the old logger which in turns has a direct
 // mapping to syslog priority. This is done to make it easier to
 // move step by step to structured logging. We consider both level
-// and priorty to select which messages are logged, amnd a backend
+// and priority to select which messages are logged, and a backend
 // can further use priority to pass to syslog.
 
 enum Priority : uint8_t