log attached drives

This commit is contained in:
Hendrik Schutter 2022-01-26 13:52:21 +01:00
parent 7748d49b54
commit 068413c15d

View File

@ -298,7 +298,7 @@ void reHDD::searchDrives(list <Drive>* plistDrives)
if (outputfileHwinfo == NULL) if (outputfileHwinfo == NULL)
{ {
Logger::logThis()->error("Unable to scann attached drives"); Logger::logThis()->error("Unable to scan attached drives");
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
@ -310,6 +310,7 @@ void reHDD::searchDrives(list <Drive>* plistDrives)
tmpDrive->state = Drive::NONE; tmpDrive->state = Drive::NONE;
tmpDrive->bIsOffline = false; tmpDrive->bIsOffline = false;
plistDrives->push_back(*tmpDrive); plistDrives->push_back(*tmpDrive);
Logger::logThis()->info("search drives: " + tmpDrive->getPath());
} }
} }
fclose(outputfileHwinfo); fclose(outputfileHwinfo);