mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
[partition] Improve logging while collecting devices
This commit is contained in:
parent
cf341c53fa
commit
a57a1fdbd8
1 changed files with 14 additions and 5 deletions
|
@ -255,13 +255,22 @@ PartitionCoreModule::doInit()
|
|||
DeviceList devices = PartUtils::getDevices( PartUtils::DeviceType::WritableOnly );
|
||||
|
||||
cDebug() << "LIST OF DETECTED DEVICES:";
|
||||
cDebug() << "node\tcapacity\tname\tprettyName";
|
||||
cDebug() << Logger::SubEntry << "node\tcapacity\tname\tprettyName";
|
||||
for ( auto device : devices )
|
||||
{
|
||||
cDebug() << Logger::SubEntry << Logger::Pointer(device);
|
||||
if ( device )
|
||||
{
|
||||
// Gives ownership of the Device* to the DeviceInfo object
|
||||
auto deviceInfo = new DeviceInfo( device );
|
||||
m_deviceInfos << deviceInfo;
|
||||
cDebug() << device->deviceNode() << device->capacity() << device->name() << device->prettyName();
|
||||
cDebug() << Logger::SubEntry << device->deviceNode() << device->capacity() << device->name()
|
||||
<< device->prettyName();
|
||||
}
|
||||
else
|
||||
{
|
||||
cDebug() << Logger::SubEntry << "(skipped null device)";
|
||||
}
|
||||
}
|
||||
cDebug() << Logger::SubEntry << devices.count() << "devices detected.";
|
||||
m_deviceModel->init( devices );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue