aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-02-04 06:40:17 +0000
committersaturneric <[email protected]>2023-02-04 06:50:30 +0000
commitf52b5f91bec98c7d45422d77cc09a0419d59b81b (patch)
tree391802daf890abe85ccd63a42257ef1619249e35 /src/core/function/gpg
parentfix: solve open file issue in menu bar (diff)
downloadGpgFrontend-f52b5f91bec98c7d45422d77cc09a0419d59b81b.tar.gz
GpgFrontend-f52b5f91bec98c7d45422d77cc09a0419d59b81b.zip
feat: add cache recovery function
Diffstat (limited to 'src/core/function/gpg')
-rw-r--r--src/core/function/gpg/GpgAdvancedOperator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/function/gpg/GpgAdvancedOperator.cpp b/src/core/function/gpg/GpgAdvancedOperator.cpp
index dc48410e..3cbee45d 100644
--- a/src/core/function/gpg/GpgAdvancedOperator.cpp
+++ b/src/core/function/gpg/GpgAdvancedOperator.cpp
@@ -32,6 +32,7 @@
#include "GpgAdvancedOperator.h"
#include "core/function/gpg/GpgCommandExecutor.h"
+#include "spdlog/spdlog.h"
GpgFrontend::GpgAdvancedOperator::GpgAdvancedOperator(int channel)
: SingletonFunctionObject(channel) {}
@@ -42,6 +43,7 @@ bool GpgFrontend::GpgAdvancedOperator::ClearGpgPasswordCache() {
ctx_.GetInfo().GpgConfPath, {"--reload", "gpg-agent"},
[&](int exit_code, const std::string &p_out, const std::string &p_err) {
if (exit_code == 0) {
+ SPDLOG_DEBUG("gpgconf reload exit code: {}", exit_code);
success = true;
}
});