Log a message when the web api produces a 404 response.

This commit is contained in:
Shane Kilkelly 2015-09-10 14:32:35 +01:00
parent 575bdc62ec
commit 810bddb2cb

View file

@ -14,6 +14,7 @@ module.exports = WebApiManager =
if error?
return callback(error)
if res.statusCode == 404
logger.log url: url, "got 404 from web api"
return callback null, null
if res.statusCode >= 200 and res.statusCode < 300
return callback null, body