aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/module/Event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/module/Event.cpp')
-rw-r--r--src/core/module/Event.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/core/module/Event.cpp b/src/core/module/Event.cpp
index 6bd6eae5..b2a4417a 100644
--- a/src/core/module/Event.cpp
+++ b/src/core/module/Event.cpp
@@ -42,7 +42,7 @@ class Event::Impl {
for (const auto& param : params) {
AddParameter(param);
}
- SPDLOG_DEBUG("create event {}", event_identifier_);
+ GF_CORE_LOG_DEBUG("create event {}", event_identifier_);
}
auto operator[](const std::string& key) const
@@ -80,19 +80,20 @@ class Event::Impl {
void ExecuteCallback(ListenerIdentifier listener_id,
const DataObjectPtr& data_object) {
- SPDLOG_DEBUG("try to execute callback for event {} with listener {}",
- event_identifier_, listener_id);
+ GF_CORE_LOG_DEBUG("try to execute callback for event {} with listener {}",
+ event_identifier_, listener_id);
if (callback_) {
- SPDLOG_DEBUG("executing callback for event {} with listener {}",
- event_identifier_, listener_id);
+ GF_CORE_LOG_DEBUG("executing callback for event {} with listener {}",
+ event_identifier_, listener_id);
if (!QMetaObject::invokeMethod(
callback_thread_,
[callback = callback_, event_identifier = event_identifier_,
listener_id, data_object]() {
callback(event_identifier, listener_id, data_object);
})) {
- SPDLOG_ERROR("failed to invoke callback for event {} with listener {}",
- event_identifier_, listener_id);
+ GF_CORE_LOG_ERROR(
+ "failed to invoke callback for event {} with listener {}",
+ event_identifier_, listener_id);
}
}
}