[modules] Use cError() as well
- Switch KPMHelpers to using Calamares logging instead of qDebug()
This commit is contained in:
parent
3315df5df1
commit
3ae126f589
@ -291,7 +291,7 @@ Branding::setGlobals( GlobalStorage* globalStorage ) const
|
||||
void
|
||||
Branding::bail( const QString& message )
|
||||
{
|
||||
cLog() << "FATAL ERROR in"
|
||||
cError() << "FATAL in"
|
||||
<< m_descriptorPath
|
||||
<< "\n" + message;
|
||||
::exit( EXIT_FAILURE );
|
||||
|
@ -29,6 +29,8 @@
|
||||
#include <kpmcore/backend/corebackendmanager.h>
|
||||
#include <kpmcore/fs/luks.h>
|
||||
|
||||
#include "utils/Logger.h"
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
@ -46,7 +48,7 @@ initKPMcore()
|
||||
QByteArray backendName = qgetenv( "KPMCORE_BACKEND" );
|
||||
if ( !CoreBackendManager::self()->load( backendName.isEmpty() ? CoreBackendManager::defaultBackendName() : backendName ) )
|
||||
{
|
||||
qWarning() << "Failed to load backend plugin" << backendName;
|
||||
cWarning() << "Failed to load backend plugin" << backendName;
|
||||
return false;
|
||||
}
|
||||
s_KPMcoreInited = true;
|
||||
@ -155,7 +157,7 @@ createNewEncryptedPartition( PartitionNode* parent,
|
||||
) );
|
||||
if ( !fs )
|
||||
{
|
||||
qDebug() << "ERROR: cannot create LUKS filesystem. Giving up.";
|
||||
cError() << "cannot create LUKS filesystem. Giving up.";
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -281,11 +281,11 @@ runOsprober( PartitionCoreModule* core )
|
||||
osprober.start();
|
||||
if ( !osprober.waitForStarted() )
|
||||
{
|
||||
cDebug() << "ERROR: os-prober cannot start.";
|
||||
cError() << "os-prober cannot start.";
|
||||
}
|
||||
else if ( !osprober.waitForFinished( 60000 ) )
|
||||
{
|
||||
cDebug() << "ERROR: os-prober timed out.";
|
||||
cError() << "os-prober timed out.";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user