cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sarangan12 <...@git.apache.org>
Subject [GitHub] cordova-medic pull request: CB-10405 - Connectivity issue to Cordo...
Date Tue, 02 Feb 2016 22:02:09 GMT
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message