Skip to content

Commit

Permalink
fix: don't move logger; don't shadow the m_log from SpdlogMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc committed Nov 29, 2023
1 parent e00de70 commit e3a5213
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/algorithms/tracking/TrackerMeasurementFromHits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace eicrecon {
std::shared_ptr<spdlog::logger> logger) {
m_dd4hepGeo = detector;
m_converter = converter;
m_log = std::move(logger);
m_log = logger;
m_acts_context = std::move(acts_context);
m_detid_b0tracker = m_dd4hepGeo->constant<int>("B0Tracker_Station_1_ID");
}
Expand Down
1 change: 0 additions & 1 deletion src/global/tracking/TrackerMeasurementFromHits_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ namespace eicrecon {

private:

std::shared_ptr<spdlog::logger> m_log; /// Logger for this factory
std::vector<std::string> m_input_tags; /// Tags of factories that provide input data
eicrecon::TrackerMeasurementFromHits m_measurement; /// Tracker measurement algorithm
};
Expand Down

0 comments on commit e3a5213

Please sign in to comment.