Mercurial > lbo > hg > geohub
changeset 123:b7823064b770
livemap: Remove unnecessary console.log statements
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sat, 27 Feb 2021 08:14:56 +0100 |
parents | cb2661200dab |
children | 521574ee3223 |
files | assets/livemap.html examples/track_ICE/collect.py |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/assets/livemap.html Sat Feb 27 07:44:50 2021 +0100 +++ b/assets/livemap.html Sat Feb 27 08:14:56 2021 +0100 @@ -126,7 +126,7 @@ var coords = lastfeature['geometry']['coordinates']; - console.log('Received update:', coords, 'last:', response); + //console.log('Received update:', coords, 'last:', response); setCurrentLocation(coords[1], coords[0], lastfeature.properties); // 13 is a good default zoom for an updated point. mymap.setView([coords[1], coords[0]], mapZoomed ? mymap.getZoom() : 13); @@ -172,7 +172,7 @@ } var secretparam = secret == null ? '' : `secret=${secret}`; var url = `../../geo/${client}/retrieve/live?${secretparam}&timeout=30`; - console.log('Requesting URL ' + url); + //console.log('Requesting URL ' + url); xhr.responseType = 'json'; xhr.open('GET', url, true); xhr.onreadystatechange = function() { xhrcallback(xhr) };
--- a/examples/track_ICE/collect.py Sat Feb 27 07:44:50 2021 +0100 +++ b/examples/track_ICE/collect.py Sat Feb 27 08:14:56 2021 +0100 @@ -15,7 +15,7 @@ def fetch_current(sess, api): while True: try: - return sess.get(api).json() + return requests.get(api).json() except requests.exceptions.ConnectionError as e: eprint('Retrying failed request:', e) time.sleep(3)