diff --git a/xtrn/wttr.in/wttr-lib.js b/xtrn/wttr.in/wttr-lib.js index a2b77c09572a97d4c3324735bf0873818a3feaf7..0515c3ac552d5b9fbb6da1c5360ae4cb52e6dce6 100644 --- a/xtrn/wttr.in/wttr-lib.js +++ b/xtrn/wttr.in/wttr-lib.js @@ -31,14 +31,10 @@ function writeCache(qs, addr, ans) { } function fetchWeather(qs, addr) { - log(LOG_DEBUG, 'Requesting weather from ' + qs + ' for ' + addr); const http = new HTTPRequest(); if (addr !== undefined) http.extra_headers = { 'X-Forwarded-For': addr }; const body = http.Get(qs); - if (http.response_code !== 200) { - log(LOG_DEBUG, 'wttr.in response had status ' + http.response_code); - throw new Error('wttr.in response had status ' + http.response_code); - } + if (http.response_code !== 200) throw new Error('wttr.in response had status ' + http.response_code); return body; }