MassManager: use Logger _everywhere_.

This commit is contained in:
Guillaume Jacquemin 2022-11-22 10:06:22 +01:00
parent 1421257c4f
commit 51b25ea9c5

View file

@ -203,16 +203,16 @@ void MassManager::refreshStagedMasses() {
auto list_view = file_list->exceptSuffix(file_list->end() - iter); auto list_view = file_list->exceptSuffix(file_list->end() - iter);
Utility::Debug{} << "Scanning for staged M.A.S.S.es..."; LOG_INFO("Scanning for staged M.A.S.S.es...");
for(Containers::StringView file : list_view) { for(Containers::StringView file : list_view) {
auto name = Mass::getNameFromFile(Utility::Path::join(_stagingAreaDirectory, file)); auto name = Mass::getNameFromFile(Utility::Path::join(_stagingAreaDirectory, file));
if(name) { if(name) {
Utility::Debug{} << "Found staged M.A.S.S.:" << *name; LOG_INFO_FORMAT("Found staged M.A.S.S.: {}", *name);
_stagedMasses[file] = *name; _stagedMasses[file] = *name;
} }
else { else {
Utility::Warning{} << "Skipped:" << file; LOG_WARNING_FORMAT("Skipped {}.", file);
} }
} }
} }