aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/basic
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-30 18:48:25 +0000
committersaturneric <[email protected]>2024-07-30 18:48:25 +0000
commit99c1b2c3ed902969d8940e384ff9fcd2805098b0 (patch)
treea86ab01bbe3f85318f869ffdebfcba623be6a857 /src/core/function/basic
parentfeat: simplify logging (diff)
downloadGpgFrontend-99c1b2c3ed902969d8940e384ff9fcd2805098b0.tar.gz
GpgFrontend-99c1b2c3ed902969d8940e384ff9fcd2805098b0.zip
fix: do clean up
Diffstat (limited to 'src/core/function/basic')
-rw-r--r--src/core/function/basic/SingletonStorage.cpp8
-rw-r--r--src/core/function/basic/SingletonStorageCollection.cpp11
2 files changed, 8 insertions, 11 deletions
diff --git a/src/core/function/basic/SingletonStorage.cpp b/src/core/function/basic/SingletonStorage.cpp
index edc52b4a..e51acd77 100644
--- a/src/core/function/basic/SingletonStorage.cpp
+++ b/src/core/function/basic/SingletonStorage.cpp
@@ -86,10 +86,10 @@ class SingletonStorage::Impl {
auto* raw_obj = p_obj.get();
{
- qCDebug(core,
- "register channel object to instances map, "
- "channel: %d, address: %p",
- channel, static_cast<void*>(p_obj.get()));
+ FLOG_D(
+ "register channel object to instances map, "
+ "channel: %d, address: %p",
+ channel, static_cast<void*>(p_obj.get()));
std::unique_lock<std::shared_mutex> lock(instances_mutex_);
instances_map_[channel] = std::move(p_obj);
}
diff --git a/src/core/function/basic/SingletonStorageCollection.cpp b/src/core/function/basic/SingletonStorageCollection.cpp
index 734bf97c..7e5430fb 100644
--- a/src/core/function/basic/SingletonStorageCollection.cpp
+++ b/src/core/function/basic/SingletonStorageCollection.cpp
@@ -49,9 +49,8 @@ class SingletonStorageCollection::Impl {
static auto GetInstance(bool force_refresh) -> SingletonStorageCollection* {
if (force_refresh || global_instance == nullptr) {
global_instance = SecureCreateUniqueObject<SingletonStorageCollection>();
- qCDebug(core,
- "a new global singleton storage collection created, address: %p",
- static_cast<void*>(global_instance.get()));
+ FLOG_D("a new global singleton storage collection created, address: %p",
+ static_cast<void*>(global_instance.get()));
}
return global_instance.get();
}
@@ -106,10 +105,8 @@ auto GpgFrontend::SingletonStorageCollection::GetInstance(bool force_refresh)
}
void SingletonStorageCollection::Destroy() {
- qCDebug(
- core,
- "global singleton storage collection is about to destroy, address: %p",
- static_cast<void*>(global_instance.get()));
+ FLOG_D("global singleton storage collection is about to destroy, address: %p",
+ static_cast<void*>(global_instance.get()));
return SingletonStorageCollection::Impl::Destroy();
}