Parse Events through the EventParser

This commit is contained in:
Balachandar Namasivayam 2020-05-19 17:02:13 -07:00
parent 16990aeb6f
commit a22d71bb24
1 changed files with 3 additions and 3 deletions

View File

@ -138,11 +138,11 @@ bool checkTxInfoEntryFormat(BinaryReader &reader) {
while (!reader.empty()) {
// Get EventType and timestamp
FdbClientLogEvents::EventType event;
FdbClientLogEvents::Event event;
reader >> event;
double timeStamp;
reader >> timeStamp;
switch (event)
switch (event.type)
{
case FdbClientLogEvents::GET_VERSION_LATENCY:
parser->parseGetVersion(reader);
@ -166,7 +166,7 @@ bool checkTxInfoEntryFormat(BinaryReader &reader) {
parser->parseErrorCommit(reader);
break;
default:
TraceEvent(SevError, "ClientTransactionProfilingUnknownEvent").detail("EventType", event);
TraceEvent(SevError, "ClientTransactionProfilingUnknownEvent").detail("EventType", event.type);
return false;
}
}