Explorar o código

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

Shane Kilkelly %!s(int64=11) %!d(string=hai) anos
pai
achega
810bddb2cb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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