aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/basic/SingletonStorage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/function/basic/SingletonStorage.cpp')
-rw-r--r--src/core/function/basic/SingletonStorage.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/function/basic/SingletonStorage.cpp b/src/core/function/basic/SingletonStorage.cpp
index 4883c3a1..edc52b4a 100644
--- a/src/core/function/basic/SingletonStorage.cpp
+++ b/src/core/function/basic/SingletonStorage.cpp
@@ -53,7 +53,7 @@ class SingletonStorage::Impl {
std::shared_lock<std::shared_mutex> lock(instances_mutex_);
ins_it = instances_map_.find(channel);
if (ins_it == instances_map_.end()) {
- qCDebug(core, "cannot find channel object, channel: %d", channel);
+ FLOG_D("cannot find channel object, channel: %d", channel);
return nullptr;
}
return ins_it->second.get();
@@ -71,14 +71,14 @@ class SingletonStorage::Impl {
auto SetObjectInChannel(int channel, ChannelObjectPtr p_obj)
-> GpgFrontend::ChannelObject* {
- qCDebug(core, "set channel object, type: %s in channel: %d, address: %p",
- typeid(p_obj.get()).name(), channel,
- static_cast<void*>(p_obj.get()));
+ FLOG_D("set channel object, type: %s in channel: %d, address: %p",
+ typeid(p_obj.get()).name(), channel,
+ static_cast<void*>(p_obj.get()));
assert(p_obj != nullptr);
if (p_obj == nullptr) {
- qCWarning(core, "cannot set a nullptr as a channel object of channel: %d",
- channel);
+ FLOG_W("cannot set a nullptr as a channel object of channel: %d",
+ channel);
return nullptr;
}
@@ -94,8 +94,8 @@ class SingletonStorage::Impl {
instances_map_[channel] = std::move(p_obj);
}
- qCDebug(core, "set channel: %d success, current channel object address: %p",
- channel, static_cast<void*>(raw_obj));
+ FLOG_D("set channel: %d success, current channel object address: %p",
+ channel, static_cast<void*>(raw_obj));
return raw_obj;
}