Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google committed Dec 6, 2021
1 parent 58b4fb0 commit 3e2b634
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15487,6 +15487,14 @@
"source": "server",
"incoming": 0,
"outgoing": 1
},
{
"name": "TestEmitTestEventResponse",
"code": 10,
"mfgCode": null,
"source": "server",
"incoming": 0,
"outgoing": 1
}
],
"attributes": [
Expand Down
3 changes: 1 addition & 2 deletions src/app/EventLogging.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ CHIP_ERROR LogEvent(const T & aEventData, EndpointId aEndpoint, EventOptions aEv
ConcreteEventPath path(aEndpoint, aEventData.GetClusterId(), aEventData.GetEventId());
// log the actual event
aEventNumber = 0;
EventLogger<T> delegate(eventData);
EventManagement & logMgmt = chip::app::EventManagement::GetInstance();
aEventOptions.mPath = path;
return logMgmt.LogEvent(&delegate, aEventOptions, aEventNumber);
return logMgmt.LogEvent(&eventData, aEventOptions, aEventNumber);
}

} // namespace app
Expand Down

0 comments on commit 3e2b634

Please sign in to comment.