From: Tomasz Swierczek Date: Mon, 21 Oct 2024 08:21:12 +0000 (+0200) Subject: Added warning logs for events priority X-Git-Tag: accepted/tizen/unified/20241030.154513~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F02%2F319302%2F2;p=platform%2Fcore%2Fsecurity%2Fsecurity-manager.git Added warning logs for events priority This will ease debugging in case when many requests are being handled. Change-Id: I85ee91d868c1e335e569fa67153a0871ce569eb9 --- diff --git a/src/server/main/include/service-thread-dispatcher.h b/src/server/main/include/service-thread-dispatcher.h index 1c37ffe0..faf2b001 100644 --- a/src/server/main/include/service-thread-dispatcher.h +++ b/src/server/main/include/service-thread-dispatcher.h @@ -31,6 +31,7 @@ #include #include +#include #include #include #include @@ -110,6 +111,7 @@ private: if (!queue.empty()) { event = queue.front(); queue.pop(); + LogWarning("Started event with priority: " << i); goto handleOneEvent; } } @@ -140,6 +142,7 @@ private: if (!queue.empty()) { event = queue.front(); queue.pop(); + LogWarning("Started event with priority: " << Priority::HIGHEST); goto handleOneHiPrioEvent; } m_hi_prio_waitCondition.wait(ulock);