mirror of
https://github.com/sr229/kuru-kuru.git
synced 2024-09-20 04:10:33 +00:00
fix: Updated logging message in CounterCard component
Log message in CounterCard component updated to include timestamp
This commit is contained in:
parent
b82a792781
commit
1572ec1584
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue