Просмотр исходного кода

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

Shane Kilkelly 11 лет назад
Родитель
Сommit
810bddb2cb
1 измененных файлов с 1 добавлено и 0 удалено
  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