From e90f4a6a6d0f225fe8d393d578e942bcfa633368 Mon Sep 17 00:00:00 2001 From: Charles-Henri Bruyand Date: Fri, 18 Jun 2021 11:46:09 +0200 Subject: [PATCH] move error's content and fix typos --- pdns/recursordist/logging.cc | 2 +- pdns/recursordist/logr.hh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.47.2