From 442dee02804d01fea26aec0e60ff36823a7a91bb Mon Sep 17 00:00:00 2001 From: jomo Date: Mon, 27 Jul 2015 20:06:16 +0200 Subject: [PATCH] don't print all this shit when we receive a 500 --- lib/networking.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/networking.js b/lib/networking.js index 5e387cc..8c3f662 100644 --- a/lib/networking.js +++ b/lib/networking.js @@ -94,8 +94,8 @@ exp.get_from_options = function(rid, url, options, callback) { // cause error so the image will not be cached callback(body || null, response, (error || "TooManyRequests")); } else { - logging.error(rid, " Unknown reply:"); - logging.error(rid, JSON.stringify(response)); + // Probably 500 or the likes + logging.error(rid, "Unexpected response:", code, body); callback(body || null, response, error); } });