aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/GpgContext.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-05-19 19:03:27 +0000
committerSaturneric <[email protected]>2022-05-19 19:03:42 +0000
commitef25178144232d7363bac6dd63c0bf9878da02a5 (patch)
tree936a3f4b8ea338ed845a2c5ffe961dafc707aa8e /src/core/GpgContext.cpp
parentfix: adjust initialized order and organize (diff)
downloadGpgFrontend-ef25178144232d7363bac6dd63c0bf9878da02a5.tar.gz
GpgFrontend-ef25178144232d7363bac6dd63c0bf9878da02a5.zip
fix: solve general problems for compiling
Diffstat (limited to 'src/core/GpgContext.cpp')
-rw-r--r--src/core/GpgContext.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/GpgContext.cpp b/src/core/GpgContext.cpp
index 733354fc..7e656dfb 100644
--- a/src/core/GpgContext.cpp
+++ b/src/core/GpgContext.cpp
@@ -87,13 +87,13 @@ GpgContext::GpgContext(const GpgContextInitArgs &args) : args_(args) {
continue;
}
- DLOG(INFO) << gpgme_get_protocol_name(engine_info->protocol)
- << std::string(engine_info->file_name == nullptr
- ? "null"
- : engine_info->file_name)
- << std::string(engine_info->home_dir == nullptr
- ? "null"
- : engine_info->home_dir);
+ LOG(INFO) << gpgme_get_protocol_name(engine_info->protocol)
+ << std::string(engine_info->file_name == nullptr
+ ? "null"
+ : engine_info->file_name)
+ << std::string(engine_info->home_dir == nullptr
+ ? "null"
+ : engine_info->home_dir);
switch (engine_info->protocol) {
case GPGME_PROTOCOL_OpenPGP:
@@ -136,7 +136,7 @@ GpgContext::GpgContext(const GpgContextInitArgs &args) : args_(args) {
LOG(ERROR) << "Env check failed";
return;
} else {
- DLOG(INFO) << "gnupg version" << info_.GnupgVersion;
+ LOG(INFO) << "gnupg version" << info_.GnupgVersion;
init_ctx();
good_ = true;
}
@@ -146,7 +146,7 @@ void GpgContext::init_ctx() {
// Set Independent Database
if (info_.GnupgVersion <= "2.0.0" && args_.independent_database) {
info_.DatabasePath = args_.db_path;
- DLOG(INFO) << "custom key db path" << info_.DatabasePath;
+ LOG(INFO) << "custom key db path" << info_.DatabasePath;
auto err = gpgme_ctx_set_engine_info(_ctx_ref.get(), GPGME_PROTOCOL_OpenPGP,
info_.AppPath.c_str(),
info_.DatabasePath.c_str());