don't print all this shit when we receive a 500

This commit is contained in:
jomo 2015-07-27 20:06:16 +02:00
parent 3edf89e884
commit 442dee0280

View File

@ -94,8 +94,8 @@ exp.get_from_options = function(rid, url, options, callback) {
// cause error so the image will not be cached // cause error so the image will not be cached
callback(body || null, response, (error || "TooManyRequests")); callback(body || null, response, (error || "TooManyRequests"));
} else { } else {
logging.error(rid, " Unknown reply:"); // Probably 500 or the likes
logging.error(rid, JSON.stringify(response)); logging.error(rid, "Unexpected response:", code, body);
callback(body || null, response, error); callback(body || null, response, error);
} }
}); });