Permalink
Browse files

Add some logging

  • Loading branch information...
1 parent c607032 commit 32f536541a2ca7c0cc90b46b391dbc015166b222 Per Thulin committed Aug 13, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 static/main.js
View
@@ -138,6 +138,7 @@ function getData(callback) {
$progress.innerHTML = 'Loading data...';
if (localStorage.cache && ((new Date() - new Date(localStorage.cacheTimestamp)) < CACHE_TIME)) {
+ console.log('Loading entries from localStorage cache');
json = JSON.parse(localStorage.cache);
callback(json);
return;
@@ -173,6 +174,7 @@ function run() {
if (!hasLoaded) {
getData(function(json) {
+ console.log(json.length + ' entries loaded');
hasLoaded = true;
parseData(json);
setupCountryChooser();

0 comments on commit 32f5365

Please sign in to comment.