qt: Log execution args of gpg-card

* lang/qt/src/qgpgmegpgcardjob.cpp (do_work): Log call.
This commit is contained in:
Andre Heinecke 2020-02-19 11:06:57 +01:00
parent 2b8680aba9
commit ba08aadfa7
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View File

@ -1,9 +1,8 @@
/* /*
qgpgmekeyformailboxjob.cpp qgpgmegpgcardjob.cpp
This file is part of qgpgme, the Qt API binding for gpgme This file is part of qgpgme, the Qt API binding for gpgme
Copyright (c) 2016 by Bundesamt für Sicherheit in der Informationstechnik Copyright (c) 2020 g10 Code GmbH
Software engineering by Intevation GmbH
QGpgME is free software; you can redistribute it and/or QGpgME is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as modify it under the terms of the GNU General Public License as
@ -42,6 +41,7 @@
#include <QDir> #include <QDir>
#include <QProcess> #include <QProcess>
#include "util.h" #include "util.h"
#include "gpgme_backend_debug.h"
/* We cannot have a timeout because key generation can /* We cannot have a timeout because key generation can
* take ages. Well maybe 10 minutes. */ * take ages. Well maybe 10 minutes. */
@ -85,6 +85,8 @@ static QGpgMEGpgCardJob::result_type do_work(const QStringList &cmds, const QStr
proc.setProgram(path); proc.setProgram(path);
proc.setArguments(args); proc.setArguments(args);
qCDebug(GPGPME_BACKEND_LOG) << "Executing:" << path << args;
proc.start(); proc.start();
if (!proc.waitForStarted()) { if (!proc.waitForStarted()) {
return std::make_tuple (QString(), QString(), 1, QString(), Error()); return std::make_tuple (QString(), QString(), 1, QString(), Error());