Merge CEC-394 Car update log (#82)

This commit is contained in:
John Wu
2021-08-26 15:03:45 -07:00
committed by GitHub
parent d1815e2ff9
commit 74eb2707a3
34 changed files with 3114 additions and 3583 deletions

View File

@@ -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 (