[partition] Reduce superfluous logging

This commit is contained in:
Adriaan de Groot 2019-03-17 16:08:31 -04:00
parent 8db004ce45
commit cd545e51b0

View File

@ -45,7 +45,6 @@ typedef QHash<QString, QString> UuidForPartitionHash;
static UuidForPartitionHash static UuidForPartitionHash
findPartitionUuids( QList < Device* > devices ) findPartitionUuids( QList < Device* > devices )
{ {
cDebug() << "Gathering UUIDs for partitions that exist now.";
UuidForPartitionHash hash; UuidForPartitionHash hash;
foreach ( Device* device, devices ) foreach ( Device* device, devices )
{ {
@ -56,12 +55,11 @@ findPartitionUuids( QList < Device* > devices )
QString path = p->partitionPath(); QString path = p->partitionPath();
QString uuid = p->fileSystem().readUUID( p->partitionPath() ); QString uuid = p->fileSystem().readUUID( p->partitionPath() );
hash.insert( path, uuid ); hash.insert( path, uuid );
cDebug() << ".. added path=" << path << "UUID=" << uuid;
} }
} }
if ( hash.isEmpty() ) if ( hash.isEmpty() )
cDebug() << ".. no UUIDs found."; cDebug() << "No UUIDs found for existing partitions.";
return hash; return hash;
} }
@ -147,7 +145,6 @@ FillGlobalStorageJob::prettyDescription() const
QString path = partitionMap.value( "device" ).toString(); QString path = partitionMap.value( "device" ).toString();
QString mountPoint = partitionMap.value( "mountPoint" ).toString(); QString mountPoint = partitionMap.value( "mountPoint" ).toString();
QString fsType = partitionMap.value( "fs" ).toString(); QString fsType = partitionMap.value( "fs" ).toString();
qDebug() << partitionMap.value( "uuid" ) << path << mountPoint << fsType;
if ( mountPoint.isEmpty() || fsType.isEmpty() ) if ( mountPoint.isEmpty() || fsType.isEmpty() )
continue; continue;
if ( path.isEmpty() ) if ( path.isEmpty() )