Better debug dump

This commit is contained in:
emeric
2019-03-10 14:21:40 +01:00
parent e609b239f3
commit 080fa856f4
@@ -205,6 +205,7 @@ FeaturesSearcher::FeaturesSearcher(Wt::Dbo::Session& session, bool& stopRequeste
LMS_LOG(SIMILARITY, DEBUG) << "Classifying tracks DONE"; LMS_LOG(SIMILARITY, DEBUG) << "Classifying tracks DONE";
init(session, std::move(network), std::move(trackPositions)); init(session, std::move(network), std::move(trackPositions));
} }
FeaturesSearcher::FeaturesSearcher(Wt::Dbo::Session& session, FeaturesCache cache) FeaturesSearcher::FeaturesSearcher(Wt::Dbo::Session& session, FeaturesCache cache)
@@ -277,12 +278,12 @@ FeaturesSearcher::dump(Wt::Dbo::Session& session, std::ostream& os) const
if (!track) if (!track)
continue; continue;
os << "\t - " << track->getName() << " - "; os << "\t";
if (track->getArtist()) if (track->getArtist())
os << track->getArtist()->getName() << " - "; os << track->getArtist()->getName() << " - ";
if (track->getRelease()) if (track->getRelease())
os << track->getRelease()->getName(); os << track->getRelease()->getName() << " - ";
os << std::endl; os << track->getName() << std::endl;
} }
} }