[libcalamares] Drop generic cLog()

- Use cWarning or cError() for errors
 - Use cDebug(level) for other uses (but there aren't any)
This commit is contained in:
Adriaan de Groot 2018-03-28 09:31:45 -04:00
parent ad6227ce21
commit 6bb72d173d
5 changed files with 11 additions and 12 deletions

View file

@ -150,9 +150,9 @@ ViewManager::insertViewStep( int before, ViewStep* step )
void
ViewManager::onInstallationFailed( const QString& message, const QString& details )
{
cLog() << "Installation failed:";
cLog() << "- message:" << message;
cLog() << "- details:" << details;
cError() << "Installation failed:";
cDebug() << "- message:" << message;
cDebug() << "- details:" << details;
QMessageBox* msgBox = new QMessageBox();
msgBox->setIcon( QMessageBox::Critical );
@ -167,7 +167,7 @@ ViewManager::onInstallationFailed( const QString& message, const QString& detail
msgBox->setInformativeText( text );
connect( msgBox, &QMessageBox::buttonClicked, qApp, &QApplication::quit );
cLog() << "Calamares will quit when the dialog closes.";
cDebug() << "Calamares will quit when the dialog closes.";
msgBox->show();
}