Fix mode change logging

This commit is contained in:
Eric Wong (PAX) 2019-05-17 09:50:24 -07:00
commit f264108e8b

View file

@ -263,7 +263,6 @@ namespace CalculatorApp
fields.AddString(L"CalculatorMode", NavCategory::GetFriendlyName(mode)->Data()); fields.AddString(L"CalculatorMode", NavCategory::GetFriendlyName(mode)->Data());
fields.AddUInt32(L"WindowId", windowId); fields.AddUInt32(L"WindowId", windowId);
LogLevel3Event(EVENT_NAME_CALCULATOR_VIEWED_IN_SESSION, fields); LogLevel3Event(EVENT_NAME_CALCULATOR_VIEWED_IN_SESSION, fields);
LogLevel2Event(EVENT_NAME_MODE_CHANGED, fields);
} }
} }
@ -543,7 +542,7 @@ namespace CalculatorApp
LoggingFields fields{}; LoggingFields fields{};
// cast mode to an int for telemetry // cast mode to an int for telemetry
fields.AddInt32(L"CalcMode", NavCategory::Serialize(mode)); fields.AddInt32(L"CalcMode", NavCategory::Serialize(mode));
LogLevel2Event(EVENT_NAME_MODE_CHANGE_BEGIN, fields); LogLevel2Event(EVENT_NAME_MODE_CHANGED, fields);
} }
} }