Skip to content

Commit 5c35a8b

Browse files
committed
optimized logging
1 parent 1c9e52a commit 5c35a8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

leaderboard.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,11 @@ <h3 style="text-align: center;">NWoC 2020 Leaderboard</h3>
113113
var cells = rows[i].split(',');
114114
if (cells.length != 2) {
115115
$('#leader-div').html('<p>Data could not be parsed.</p>');
116+
console.log("Offending cell length segment: ", cells.length);
117+
console.log("data for offending segment: ", cells[1]);
116118
return;
117119
}
118-
console.log(cells.length)
120+
console.log("cells length:", cells.length);
119121
console.log("data",cells[1]);
120122
sortedData.push({score: parseInt(cells[1].trim()), username: cells[0]});
121123
}

0 commit comments

Comments
 (0)