[welcome] Improve logging of unsatisfied requirements
- improve descriptive-strings in logging ("set?" is not very meaningful) - log only the unsatisfied entries, since the preceding log-message suggests that that is what is happening.
This commit is contained in:
parent
d972dab9b7
commit
0df288f647
@ -54,9 +54,14 @@ CheckerContainer::requirementsComplete( bool ok )
|
||||
for ( int i = 0; i < model.count(); ++i )
|
||||
{
|
||||
auto index = model.index( i );
|
||||
cDebug() << Logger::SubEntry << i << model.data( index, Calamares::RequirementsModel::Name ).toString()
|
||||
<< "set?" << model.data( index, Calamares::RequirementsModel::Satisfied ).toBool() << "req?"
|
||||
<< model.data( index, Calamares::RequirementsModel::Mandatory ).toBool();
|
||||
const bool satisfied = model.data( index, Calamares::RequirementsModel::Satisfied ).toBool();
|
||||
const bool mandatory = model.data( index, Calamares::RequirementsModel::Mandatory ).toBool();
|
||||
if ( !satisfied )
|
||||
{
|
||||
cDebug() << Logger::SubEntry << i << model.data( index, Calamares::RequirementsModel::Name ).toString()
|
||||
<< "not-satisfied"
|
||||
<< "mandatory?" << mandatory;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user