fix: logging #18

Merged
Maathias merged 1 commits from misc into master 2021-11-03 23:49:44 +01:00
2 changed files with 2 additions and 4 deletions

No files matched your search

-2
View File
@@ -87,8 +87,6 @@ function Info({ top }) {
setModalReport(false)
}
console.log(track.stats)
const total = track.stats.total,
percent = total > 0 ? (track.stats.up / total) * 100 : 50
+2 -2
View File
@@ -23,10 +23,10 @@ function open() {
socket.onmessage = (e) => {
let data = JSON.parse(e.data)
console.debug(data)
if (!Array.isArray(data)) data = [data]
console.debug(data.map(({ cat }) => cat).join(' '), data)
for (let chunk of data) {
let category = events[chunk.cat]
if (category)