Merge CEC-394 Car update log (#82)
This commit is contained in:
@@ -6,6 +6,7 @@ import api from "../../../services/grafana";
|
||||
import { useStatusContext } from "../../Contexts/StatusContext";
|
||||
import useStyles from "../../useStyles";
|
||||
import ResponsiveIFrame from "../../Controls/ResponsiveIFrame";
|
||||
import { logger } from "../../../services/monitoring";
|
||||
|
||||
const Datascope = () => {
|
||||
const classes = useStyles();
|
||||
@@ -23,7 +24,7 @@ const Datascope = () => {
|
||||
api
|
||||
.getCarsCount()
|
||||
.then((result) => setCarsCount(result))
|
||||
.catch((error) => console.log(error));
|
||||
.catch((error) => logger.warn(error.stack));
|
||||
}, []);
|
||||
|
||||
const [signalsCount, setSignalsCount] = useState("0");
|
||||
@@ -45,7 +46,7 @@ const Datascope = () => {
|
||||
let num = result.toLocaleString();
|
||||
setSignalsCount(num);
|
||||
})
|
||||
.catch((error) => console.log(error));
|
||||
.catch((error) => logger.warn(error.stack));
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user