소스 검색

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

jomo 10 년 전
부모
커밋
442dee0280
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      lib/networking.js

+ 2 - 2
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);
     }
   });