Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalff committed May 10, 2024
1 parent e11348b commit a3b6a47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions instrumentation/boost_log/src/sink.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 &timestamp =
auto timestamp =
boost::log::extract_or_default<boost::posix_time::ptime>(record["TimeStamp"], kInvalid);
value = system_clock::time_point(nanoseconds((timestamp - kEpochTime).total_nanoseconds()));
return timestamp != kInvalid;
Expand All @@ -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<boost::log::aux::thread::id>(record["ThreadID"], kInvalid);

std::stringstream ss;
Expand Down

0 comments on commit a3b6a47

Please sign in to comment.