@@ -1343,7 +1343,7 @@ inline event_id_t LoggingManagement::LogEventPrivate(const EventSchema & inSchem
13431343 GetImportanceBuffer (inSchema.mImportance )->AddEventUTC (opts.timestamp .utcTimestamp );
13441344
13451345#if WEAVE_CONFIG_EVENT_LOGGING_VERBOSE_DEBUG_LOGS
1346- WeaveLogDetail (
1346+ WeaveLogProgress (
13471347 EventLogging, " LogEvent event id: %u importance: %u profile id: 0x%x structure id: 0x%x utc timestamp: 0x%" PRIx64,
13481348 event_id, inSchema.mImportance , inSchema.mProfileId , inSchema.mStructureType , opts.timestamp .utcTimestamp );
13491349#endif // WEAVE_CONFIG_EVENT_LOGGING_VERBOSE_DEBUG_LOGS
@@ -1354,7 +1354,7 @@ inline event_id_t LoggingManagement::LogEventPrivate(const EventSchema & inSchem
13541354 GetImportanceBuffer (inSchema.mImportance )->AddEvent (opts.timestamp .systemTimestamp );
13551355
13561356#if WEAVE_CONFIG_EVENT_LOGGING_VERBOSE_DEBUG_LOGS
1357- WeaveLogDetail (
1357+ WeaveLogProgress (
13581358 EventLogging, " LogEvent event id: %u importance: %u profile id: 0x%x structure id: 0x%x sys timestamp: 0x%" PRIx32,
13591359 event_id, inSchema.mImportance , inSchema.mProfileId , inSchema.mStructureType , opts.timestamp .systemTimestamp );
13601360#endif // WEAVE_CONFIG_EVENT_LOGGING_VERBOSE_DEBUG_LOGS
@@ -1946,13 +1946,19 @@ WEAVE_ERROR LoggingManagement::ScheduleFlushIfNeeded(bool inRequestFlush)
19461946 if ((mExchangeMgr != NULL ) && (mExchangeMgr ->MessageLayer != NULL ) && (mExchangeMgr ->MessageLayer ->SystemLayer != NULL ))
19471947 {
19481948 mExchangeMgr ->MessageLayer ->SystemLayer ->ScheduleWork (LoggingFlushHandler, this );
1949+ WeaveLogProgress (EventLogging, " Scheduled flush for urgent event." );
19491950 }
19501951 else
19511952 {
19521953 err = WEAVE_ERROR_INCORRECT_STATE;
19531954 mUploadRequested = false ;
1955+ WeaveLogError (EventLogging, " Schedule flush failed with error: %s" , ErrorStr (err));
19541956 }
19551957 }
1958+ else if (inRequestFlush)
1959+ {
1960+ WeaveLogProgress (EventLogging, " Flush already scheduled, no need to schedule an additional flush." );
1961+ }
19561962
19571963 return err;
19581964}
0 commit comments