aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/qgpgmerefreshkeysjob.cpp
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2020-02-19 10:12:43 +0000
committerAndre Heinecke <[email protected]>2020-02-19 10:15:54 +0000
commitec9690cf5ce85f43997ac2a3abd3e728012aee4a (patch)
tree424710f01095a353003fad60c49a69928ef35300 /lang/qt/src/qgpgmerefreshkeysjob.cpp
parentqt: Log execution args of gpg-card (diff)
downloadgpgme-aheinecke/json-test.tar.gz
gpgme-aheinecke/json-test.zip
qt: Change logging categoryaheinecke/json-test
* lang/qt/src/*: Change logging category to macro to QGPGME_LOG. -- The old logging category macro had a typo and this way we are more consistent with other logging rules. For example you could write gpg.* in the logging conf.
Diffstat (limited to 'lang/qt/src/qgpgmerefreshkeysjob.cpp')
-rw-r--r--lang/qt/src/qgpgmerefreshkeysjob.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lang/qt/src/qgpgmerefreshkeysjob.cpp b/lang/qt/src/qgpgmerefreshkeysjob.cpp
index ae862e04..5f78f2ae 100644
--- a/lang/qt/src/qgpgmerefreshkeysjob.cpp
+++ b/lang/qt/src/qgpgmerefreshkeysjob.cpp
@@ -41,7 +41,7 @@
#include "qgpgmerefreshkeysjob.h"
#include <QDebug>
-#include "gpgme_backend_debug.h"
+#include "qgpgme_debug.h"
#include "context.h"
@@ -157,18 +157,18 @@ void QGpgME::QGpgMERefreshKeysJob::slotStatus(QProcess *proc, const QString &typ
if (type == QLatin1String("ERROR")) {
if (args.size() < 2) {
- qCDebug(GPGPME_BACKEND_LOG) << "not recognising ERROR with < 2 args!";
+ qCDebug(QGPGME_LOG) << "not recognising ERROR with < 2 args!";
return;
}
const int source = (*++it).toInt(&ok);
if (!ok) {
- qCDebug(GPGPME_BACKEND_LOG) << "expected number for first ERROR arg, got something else";
+ qCDebug(QGPGME_LOG) << "expected number for first ERROR arg, got something else";
return;
}
ok = false;
const int code = (*++it).toInt(&ok);
if (!ok) {
- qCDebug(GPGPME_BACKEND_LOG) << "expected number for second ERROR arg, got something else";
+ qCDebug(QGPGME_LOG) << "expected number for second ERROR arg, got something else";
return;
}
mError = GpgME::Error::fromCode(code, source);
@@ -176,26 +176,26 @@ void QGpgME::QGpgMERefreshKeysJob::slotStatus(QProcess *proc, const QString &typ
} else if (type == QLatin1String("PROGRESS")) {
if (args.size() < 4) {
- qCDebug(GPGPME_BACKEND_LOG) << "not recognising PROGRESS with < 4 args!";
+ qCDebug(QGPGME_LOG) << "not recognising PROGRESS with < 4 args!";
return;
}
const QString what = *++it;
ok = false;
(*++it).toInt(&ok);
if (!ok) {
- qCDebug(GPGPME_BACKEND_LOG) << "expected number for \"type\", got something else";
+ qCDebug(QGPGME_LOG) << "expected number for \"type\", got something else";
return;
}
ok = false;
const int cur = (*++it).toInt(&ok);
if (!ok) {
- qCDebug(GPGPME_BACKEND_LOG) << "expected number for \"cur\", got something else";
+ qCDebug(QGPGME_LOG) << "expected number for \"cur\", got something else";
return;
}
ok = false;
const int total = (*++it).toInt(&ok);
if (!ok) {
- qCDebug(GPGPME_BACKEND_LOG) << "expected number for \"total\", got something else";
+ qCDebug(QGPGME_LOG) << "expected number for \"total\", got something else";
return;
}
// TODO port