[libcalamares] Introduce cVerbose() convenience macro (like cDebug())

This commit is contained in:
Adriaan de Groot 2021-06-18 16:01:04 +02:00
parent 17cc0470da
commit 66f96e339c
2 changed files with 3 additions and 2 deletions

View File

@ -327,6 +327,7 @@ operator<<( CDebug&& s, const Once& o )
} // namespace Logger
#define cVerbose() Logger::CDebug( Logger::LOGVERBOSE, Q_FUNC_INFO )
#define cDebug() Logger::CDebug( Logger::LOGDEBUG, Q_FUNC_INFO )
#define cWarning() Logger::CDebug( Logger::LOGWARNING, Q_FUNC_INFO )
#define cError() Logger::CDebug( Logger::LOGERROR, Q_FUNC_INFO )

View File

@ -25,8 +25,8 @@ AutoMountManagementJob::prettyName() const
Calamares::JobResult
AutoMountManagementJob::exec()
{
Logger::CDebug( Logger::LOGVERBOSE ) << "this" << Logger::Pointer( this ) << "value" << Logger::Pointer( m_stored )
<< ( m_stored ? "restore" : m_disable ? "disable" : "enable" );
cVerbose() << "this" << Logger::Pointer( this ) << "value" << Logger::Pointer( m_stored )
<< ( m_stored ? "restore" : m_disable ? "disable" : "enable" );
if ( m_stored )
{
CalamaresUtils::Partition::automountRestore( m_stored );