[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
@ -71,8 +71,11 @@ private:
|
|||||||
inline CDebug&
|
inline CDebug&
|
||||||
operator<<( CDebug&& s, const FuncSuppressor& f )
|
operator<<( CDebug&& s, const FuncSuppressor& f )
|
||||||
{
|
{
|
||||||
s.m_funcinfo = nullptr;
|
if ( s.m_funcinfo )
|
||||||
s << f.m_s;
|
{
|
||||||
|
s.m_funcinfo = nullptr;
|
||||||
|
s.m_msg = QString( f.m_s );
|
||||||
|
}
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user