diff options
author | saturneric <[email protected]> | 2024-07-30 18:42:12 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-07-30 18:42:12 +0000 |
commit | dbb4a21931cd10a3caed3c446af0fe06de9873b1 (patch) | |
tree | b3eb2e6fc3e67ea274472dfacfa3451848b43c80 /src/core/thread/Task.cpp | |
parent | fix: solve known issues on build (diff) | |
download | GpgFrontend-dbb4a21931cd10a3caed3c446af0fe06de9873b1.tar.gz GpgFrontend-dbb4a21931cd10a3caed3c446af0fe06de9873b1.zip |
feat: simplify logging
Diffstat (limited to 'src/core/thread/Task.cpp')
-rw-r--r-- | src/core/thread/Task.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/thread/Task.cpp b/src/core/thread/Task.cpp index f5c34dbd..7a0e76e8 100644 --- a/src/core/thread/Task.cpp +++ b/src/core/thread/Task.cpp @@ -144,8 +144,8 @@ class Task::Impl { callback_(rtn_, data_object_); } } catch (...) { - qCWarning(core) << "task: {}, " << GetFullID() - << "callback caught exception, rtn: " << rtn; + LOG_W() << "task: {}, " << GetFullID() + << "callback caught exception, rtn: " << rtn; } emit parent_->SignalTaskEnd(); }); @@ -217,7 +217,7 @@ void Task::slot_exception_safe_run() noexcept { rtn = this->Run(); } catch (...) { - qCWarning(core) << "exception was caught at task: {}" << GetFullID(); + LOG_W() << "exception was caught at task: {}" << GetFullID(); } // raise signal to anounce after runnable returned |