From 588661de981a27c52cd0c63042dbf82fff892492 Mon Sep 17 00:00:00 2001 From: echicken <echicken@bbs.electronicchicken.com> Date: Fri, 24 Feb 2023 03:57:34 +0000 Subject: [PATCH] Remove some debug logging. --- xtrn/wttr.in/wttr-lib.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xtrn/wttr.in/wttr-lib.js b/xtrn/wttr.in/wttr-lib.js index a2b77c0957..0515c3ac55 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; } -- GitLab