TP-80789 | Added alfred API logs

This commit is contained in:
yashmantri
2024-09-21 21:23:03 +05:30
parent ee9d9d9d15
commit dbcdabc4a5

View File

@@ -21,7 +21,9 @@ public class AlfredApiLogsProviderImpl implements AlfredApiLogsProvider {
alfredEventProperties.put("requestUrl", String.valueOf(request.url()));
alfredEventProperties.put("isSuccess", String.valueOf(response.isSuccessful()));
alfredEventProperties.put("message", response.message());
alfredEventProperties.put("exception", String.valueOf(e));
if (e != null) {
alfredEventProperties.put("exception", String.valueOf(e.getMessage()));
}
PulseManager.INSTANCE.trackEvent("FA_ALFRED_EVENT_API", alfredEventProperties);
}
}