From ba08aadfa7d254f459f51470a7331c6cc2de5199 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Wed, 19 Feb 2020 11:06:57 +0100 Subject: [PATCH] qt: Log execution args of gpg-card * lang/qt/src/qgpgmegpgcardjob.cpp (do_work): Log call. --- lang/qt/src/qgpgmegpgcardjob.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lang/qt/src/qgpgmegpgcardjob.cpp b/lang/qt/src/qgpgmegpgcardjob.cpp index 0b0ce3ea..cb59a271 100644 --- a/lang/qt/src/qgpgmegpgcardjob.cpp +++ b/lang/qt/src/qgpgmegpgcardjob.cpp @@ -1,9 +1,8 @@ /* - qgpgmekeyformailboxjob.cpp + qgpgmegpgcardjob.cpp This file is part of qgpgme, the Qt API binding for gpgme - Copyright (c) 2016 by Bundesamt für Sicherheit in der Informationstechnik - Software engineering by Intevation GmbH + Copyright (c) 2020 g10 Code GmbH QGpgME is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -42,6 +41,7 @@ #include #include #include "util.h" +#include "gpgme_backend_debug.h" /* We cannot have a timeout because key generation can * 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.setArguments(args); + + qCDebug(GPGPME_BACKEND_LOG) << "Executing:" << path << args; proc.start(); if (!proc.waitForStarted()) { return std::make_tuple (QString(), QString(), 1, QString(), Error());