fix: Updated logging message in CounterCard component

Log message in CounterCard component updated to include timestamp
This commit is contained in:
Ayane Satomi 2023-10-21 14:06:35 +00:00
parent b82a792781
commit 1572ec1584

View file

@ -101,7 +101,7 @@ export default function Counter(props: SharedProps) {
// TODO: Reconnect backoff logic could be improved
es.addEventListener("error", () => {
console.warn(
`Disconnected from statistics stream, attempting to reconnect...`,
`[${new Date()}] Disconnected from statistics stream, attempting to reconnect...`,
);
const backoff = 1000 + Math.random() * 5000;
new Promise((resolve) => setTimeout(resolve, backoff));