Parcourir la source

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

Shane Kilkelly il y a 11 ans
Parent
commit
810bddb2cb
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      services/track-changes/app/coffee/WebApiManager.coffee

+ 1 - 0
services/track-changes/app/coffee/WebApiManager.coffee

@@ -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