knotify: log messages to specialized area

300 is reserved for kdeui (KConfigDialogManager)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-10-23 00:04:59 +03:00
parent 09eb3181c2
commit 4c4e6169b6
2 changed files with 8 additions and 6 deletions

View file

@ -1,3 +1,5 @@
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=901)
add_subdirectory( sounds )
########### next target ###############

View file

@ -499,12 +499,12 @@ QStringList NotifyByPopup::popupServerCapabilities()
dbusInterfaceName, "GetCapabilities" );
QDBusMessage replyMsg = QDBusConnection::sessionBus().call(m);
if (replyMsg.type() != QDBusMessage::ReplyMessage) {
kWarning(300) << "Error while calling popup server GetCapabilities()";
kWarning() << "Error while calling popup server GetCapabilities()";
return QStringList();
}
if (replyMsg.arguments().isEmpty()) {
kWarning(300) << "popup server GetCapabilities() returned an empty reply";
kWarning() << "popup server GetCapabilities() returned an empty reply";
return QStringList();
}
@ -559,8 +559,8 @@ QString NotifyByPopup::stripHtml( const QString &text )
if(r.hasError())
{
// XML error in the given text, just return the original string
kWarning(300) << "Notification to send to backend which does "
"not support HTML, contains invalid XML:"
kWarning() << "Notification to send to backend which does "
"not support HTML, contains invalid XML:"
<< r.errorString() << "line" << r.lineNumber()
<< "col" << r.columnNumber();
return text;
@ -579,8 +579,8 @@ QString NotifyByPopup::HtmlEntityResolver::resolveUndeclaredEntity(
QChar ent = KCharsets::fromEntity( '&' + name );
if( ent.isNull() ) {
kWarning(300) << "Notification to send to backend which does "
"not support HTML, contains invalid entity: "
kWarning() << "Notification to send to backend which does "
"not support HTML, contains invalid entity: "
<< name;
ent = ' ';
}