add debug information

This commit is contained in:
2017-03-12 04:54:31 +03:00
parent b5839051e9
commit 8031e60355
3 changed files with 79 additions and 11 deletions

View File

@ -88,15 +88,15 @@ int main(int argc, char *argv[])
// show info and exit
if (parser.isSet(infoOption)) {
QueuedDebug::enableDebug();
auto metadata = QueuedDebug::getBuildData();
for (auto &string : metadata)
qCInfo(LOG_APP) << string;
QDebug(QtMsgType::QtInfoMsg).noquote() << string;
return 1;
}
// check if exists
if (existingSessionOperation(QString("Active"))) {
qCWarning(LOG_APP) << "Another session is active";
qWarning() << "Another session is active";
return 1;
}