Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit f452cc5

Browse files
authored
Merge pull request #641 from didishe90/fixLogImportanceValue
Fix importance level in the log
2 parents 6a32d64 + 7fa0ee7 commit f452cc5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/profiles/data-management/Current/LoggingManagement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,7 @@ WEAVE_ERROR LoggingManagement::EvictEvent(WeaveCircularTLVBuffer & inBuffer, voi
17841784

17851785
eventBuffer->RemoveEvent(numEventsToDrop);
17861786
eventBuffer->mFirstEventTimestamp += context.mDeltaTime;
1787-
WeaveLogProgress(EventLogging, "Dropped events due to overflow: { importance_level: %d, count: %d };", imp, numEventsToDrop);
1787+
WeaveLogDetail(EventLogging, "Dropped events due to overflow: { importance_level: %d, count: %d };", imp, numEventsToDrop);
17881788

17891789
#if WEAVE_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS
17901790
eventBuffer->mFirstEventUTCTimestamp += context.mDeltaUtc;

src/lib/profiles/data-management/Current/NotificationEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ WEAVE_ERROR NotificationEngine::BuildSingleNotifyRequestEventList(SubscriptionHa
13451345
{
13461346
event_count += aSubHandler->mSelfVendedEvents[i] - initialEvents[i];
13471347
WeaveLogProgress(DataManagement, "Fetched events [importance: %d, event_id: %u - %u]",
1348-
i, initialEvents[i], aSubHandler->mSelfVendedEvents[i] - 1);
1348+
i + 1, initialEvents[i], aSubHandler->mSelfVendedEvents[i] - 1);
13491349
}
13501350
}
13511351

0 commit comments

Comments
 (0)