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.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/core/module/Event.cpp b/src/core/module/Event.cpp
index 4b0b989b..a1fd2fdc 100644
--- a/src/core/module/Event.cpp
+++ b/src/core/module/Event.cpp
@@ -42,7 +42,6 @@ class Event::Impl {
for (const auto& param : params) {
AddParameter(param);
}
- GF_CORE_LOG_DEBUG("create event {}", event_identifier_);
}
auto operator[](const QString& key) const -> std::optional<ParameterValue> {
@@ -83,20 +82,16 @@ class Event::Impl {
void ExecuteCallback(ListenerIdentifier listener_id,
const DataObjectPtr& data_object) {
- GF_CORE_LOG_DEBUG("try to execute callback for event {} with listener {}",
- event_identifier_, listener_id);
if (callback_) {
- 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);
})) {
- GF_CORE_LOG_ERROR(
- "failed to invoke callback for event {} with listener {}",
- event_identifier_, listener_id);
+ qCWarning(core) << "failed to invoke callback for event: "
+ << event_identifier_
+ << " with listener:" << listener_id;
}
}
}