aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/DataObjectOperator.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-02-07 11:55:13 +0000
committerSaturneric <[email protected]>2022-02-07 11:55:13 +0000
commite6f6731ad82fc4b7dda4267840df074f992f7442 (patch)
tree8454c04ac170c754e27b3bfb5d7c2ef2bd39c41b /src/core/function/DataObjectOperator.cpp
parent<fix>(ui): Fix type exception in SMTP settings (diff)
downloadGpgFrontend-e6f6731ad82fc4b7dda4267840df074f992f7442.tar.gz
GpgFrontend-e6f6731ad82fc4b7dda4267840df074f992f7442.zip
<fix>(core, ui): Fix the remaining problems in the data object
Diffstat (limited to 'src/core/function/DataObjectOperator.cpp')
-rw-r--r--src/core/function/DataObjectOperator.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/function/DataObjectOperator.cpp b/src/core/function/DataObjectOperator.cpp
index f1395152..1c7bd31a 100644
--- a/src/core/function/DataObjectOperator.cpp
+++ b/src/core/function/DataObjectOperator.cpp
@@ -62,6 +62,9 @@ GpgFrontend::DataObjectOperator::DataObjectOperator(int channel)
std::string GpgFrontend::DataObjectOperator::SaveDataObj(
const std::string& _key, const nlohmann::json& value) {
+
+ LOG(INFO) << _("Save data object") << _key;
+
std::string _hash_obj_key = {};
if (_key.empty()) {
_hash_obj_key =
@@ -121,8 +124,11 @@ std::optional<nlohmann::json> GpgFrontend::DataObjectOperator::GetDataObject(
auto decoded =
encryption.removePadding(encryption.decode(encoded, hash_key_));
+ LOG(INFO) << _("Load data object") << _key;
+
return nlohmann::json::parse(decoded.toStdString());
} catch (...) {
+ LOG(ERROR) << _("Failed to get data object") << _key;
return {};
}
}