Github user sarangan12 commented on a diff in the pull request: https://github.com/apache/cordova-medic/pull/74#discussion_r51643160 --- Diff: lib/testcheck.js --- @@ -21,22 +21,40 @@ "use strict"; -module.exports = function (sha, dbHost) { +module.exports = function (sha, dbHost, maxnumberoftries, delay) { var http = require("http"), url = require("url"), q = require("q"); + function tryConnect(options, d, pendingnumberoftries, operation, successCallBack){ + http.get(options, successCallBack) + .on("error", function(e){ + if(pendingnumberoftries > 1){ + console.log("Connection attempt to " + operation + " failed. Will try after: " + delay + " milliseconds."); --- End diff -- @nikhilkh Logged the e.message and moved the log to use util.medicLog
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org