Add assertChipStackLockedByCurrentThread for LogEvent (#31895)
diff --git a/src/app/EventManagement.cpp b/src/app/EventManagement.cpp
index 7713ba1..aa3abd6 100644
--- a/src/app/EventManagement.cpp
+++ b/src/app/EventManagement.cpp
@@ -413,6 +413,7 @@
CHIP_ERROR EventManagement::LogEvent(EventLoggingDelegate * apDelegate, const EventOptions & aEventOptions,
EventNumber & aEventNumber)
{
+ assertChipStackLockedByCurrentThread();
VerifyOrReturnError(mState != EventManagementStates::Shutdown, CHIP_ERROR_INCORRECT_STATE);
return LogEventPrivate(apDelegate, aEventOptions, aEventNumber);
}