Commit 56263bc4 authored by Kevin Funk's avatar Kevin Funk
Browse files

app: Use categorized logging everywhere

parent fd2d83c0
......@@ -94,7 +94,7 @@ void openFiles(const QVector<UrlInfo>& infos)
{
foreach (const UrlInfo& info, infos) {
if (!ICore::self()->documentController()->openDocument(info.url, info.cursor)) {
qWarning() << i18n("Could not open %1", info.url.toDisplayString(QUrl::PreferLocalFile));
qWarning(APP) << i18n("Could not open %1", info.url.toDisplayString(QUrl::PreferLocalFile));
}
}
}
......@@ -164,7 +164,7 @@ private Q_SLOTS:
QString x11SessionId = QStringLiteral("%1_%2").arg(sm.sessionId()).arg(sm.sessionKey());
const auto activeSession = KDevelop::Core::self()->sessionController()->activeSession();
if (!activeSession) {
qWarning() << "No active session, can't save state";
qWarning(APP) << "No active session, can't save state";
return;
}
......@@ -658,7 +658,7 @@ int main( int argc, char *argv[] )
const KDevelop::SessionInfo* sessionData = findSessionInList(availableSessionInfos, session);
if( !sessionData ) {
qCritical() << "session not given or does not exist";
qCritical(APP) << "session not given or does not exist";
return 5;
}
......@@ -668,7 +668,7 @@ int main( int argc, char *argv[] )
std::cout << pid << std::endl;
return 0;
} else {
qCritical() << sessionData->uuid.toString() << sessionData->name << "is not running";
qCritical(APP) << sessionData->uuid.toString() << sessionData->name << "is not running";
return 5;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment