diff --git a/instrumentation/boost_log/src/sink.cc b/instrumentation/boost_log/src/sink.cc index 2ac02a3f6..42b4590df 100644 --- a/instrumentation/boost_log/src/sink.cc +++ b/instrumentation/boost_log/src/sink.cc @@ -26,7 +26,7 @@ static bool ToTimestampDefault(const boost::log::record_view &record, static constexpr boost::posix_time::ptime kEpochTime(boost::gregorian::date(1970, 1, 1)); static constexpr boost::posix_time::ptime kInvalid{}; - const auto ×tamp = + auto timestamp = boost::log::extract_or_default(record["TimeStamp"], kInvalid); value = system_clock::time_point(nanoseconds((timestamp - kEpochTime).total_nanoseconds())); return timestamp != kInvalid; @@ -36,7 +36,7 @@ static bool ToThreadIdDefault(const boost::log::record_view &record, std::string { static constexpr boost::log::aux::thread::id kInvalid{}; - const auto &thread_id = + auto thread_id = boost::log::extract_or_default(record["ThreadID"], kInvalid); std::stringstream ss;