[libcalamares] When logging extra lines to warning or error, suppress label
Avoid logs like 23:29:57 [2]: void Config::setConfigurationMap(const QVariantMap&) WARNING: Configuration for *initialSwapChoice* is not one of the *userSwapChoices* WARNING: .. Choice "small" added. where the label is duplicated.
This commit is contained in:
parent
51f67f6c3e
commit
80300e412c
@ -70,9 +70,12 @@ private:
|
||||
|
||||
inline CDebug&
|
||||
operator<<( CDebug&& s, const FuncSuppressor& f )
|
||||
{
|
||||
if ( s.m_funcinfo )
|
||||
{
|
||||
s.m_funcinfo = nullptr;
|
||||
s << f.m_s;
|
||||
s.m_msg = QString( f.m_s );
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user