Skip to content

Commit a76c2e8

Browse files
committed
Added console.log statement for debugging.
1 parent b78d0d2 commit a76c2e8

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

app/components/ServiceDetails.jsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,27 @@ import React, { useEffect, useState, useContext } from 'react';
22
import HealthInformationContext from '../context/DetailsContext';
33
import RequestTypesChart from '../charts/request-type-chart.jsx';
44
import ResponseCodesChart from '../charts/response-code-chart.jsx';
5+
import SpeedChart from '../charts/speed-chart.jsx';
56

67
const { ipcRenderer } = window.require('electron');
78

89
const ServiceDetails = (props) => {
910
const healthdata = useContext(HealthInformationContext);
1011
const [detailsState, setDetails] = useState();
1112

13+
1214
useEffect(() => {
1315
// IPC communication used to initiate query for information on microservices.
1416
ipcRenderer.send('detailsRequest', props.index);
15-
17+
1618
// IPC listener responsible for retrieving infomation from asynchronous main process message.
1719
ipcRenderer.on('detailsResponse', (event, data) => {
1820
setDetails(Object.values(JSON.parse(data)));
1921
healthdata.detailData = detailsState;
2022
});
2123
}, []);
22-
24+
25+
console.log(detailsState);
2326
return (
2427
<div>
2528
<div>
@@ -30,6 +33,10 @@ const ServiceDetails = (props) => {
3033
<h3>Response Codes</h3>
3134
<ResponseCodesChart />
3235
</div>
36+
<div>
37+
{/* <h3>Speed Chart</h3>
38+
<SpeedChart /> */}
39+
</div>
3340
</div>
3441
);
3542
};

0 commit comments

Comments
 (0)