From: Charles-Henri Bruyand Date: Fri, 18 Jun 2021 09:46:09 +0000 (+0200) Subject: move error's content and fix typos X-Git-Tag: dnsdist-1.7.0-alpha1~122^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10160%2Fhead;p=thirdparty%2Fpdns.git move error's content and fix typos --- diff --git a/pdns/recursordist/logging.cc b/pdns/recursordist/logging.cc index 840f786e93..ace669f0ed 100644 --- a/pdns/recursordist/logging.cc +++ b/pdns/recursordist/logging.cc @@ -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) { diff --git a/pdns/recursordist/logr.hh b/pdns/recursordist/logr.hh index ff2da228c7..22a0a6f37f 100644 --- a/pdns/recursordist/logr.hh +++ b/pdns/recursordist/logr.hh @@ -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