diff options
author | saturneric <[email protected]> | 2024-01-05 12:55:15 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-05 12:55:15 +0000 |
commit | 644aa4397b03dbef73f8bfedc13925b51cad836b (patch) | |
tree | 7788d1cd2f0687dd8e576b111d9990c580092e7a /src/core/module/Event.cpp | |
parent | fix: slove some known issues (diff) | |
download | GpgFrontend-644aa4397b03dbef73f8bfedc13925b51cad836b.tar.gz GpgFrontend-644aa4397b03dbef73f8bfedc13925b51cad836b.zip |
feat: integrate logging api to core
Diffstat (limited to 'src/core/module/Event.cpp')
-rw-r--r-- | src/core/module/Event.cpp | 15 |
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); } } } |