Bug 1516229 - Follow-up: Remove fetchhttp debug output. r=jorgk
authorBen Bucksch <ben.bucksch@beonex.com>
Tue, 08 Jan 2019 19:33:00 +0100
changeset 33290 948232e82f71
parent 33289 42f55e4d3ba3
child 33291 e43ba90ba5ec
push id2368
push userclokep@gmail.com
push dateMon, 28 Jan 2019 21:12:50 +0000
treeherdercomm-beta@56d23c07d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorgk
bugs1516229
Bug 1516229 - Follow-up: Remove fetchhttp debug output. r=jorgk
mail/components/accountcreation/content/fetchhttp.js
--- a/mail/components/accountcreation/content/fetchhttp.js
+++ b/mail/components/accountcreation/content/fetchhttp.js
@@ -162,19 +162,16 @@ FetchHTTP.prototype =
     } else if (this._args.bodyFormArgs) {
       mimetype = "application/x-www-form-urlencoded; charset=UTF-8";
       body = "";
       for (let name in this._args.bodyFormArgs) {
         body += (body ? "&" : "") + name + "=" +
             encodeURIComponent(this._args.bodyFormArgs[name]);
       }
     }
-    if (body) {
-      this._logger.info("with body:\n" + body);
-    }
 
     // Headers
     if (mimetype && !("Content-Type" in this._args.headers)) {
       request.setRequestHeader("Content-Type", mimetype);
     }
     if (username && password) {
       // workaround, because open(..., username, password) does not work.
       request.setRequestHeader("Authorization", "Basic " + btoa(username + ":" + password));
@@ -184,17 +181,16 @@ FetchHTTP.prototype =
       if (name == "Cookie") {
         // Websites are not allowed to set this, but chrome is.
         // Nevertheless, the cookie lib later overwrites our header.
         // request.channel.setCookie(this._args.headers[name]); -- crashes
         // So, deactivate that Firefox cookie lib.
         request.channel.loadFlags |= Ci.nsIRequest.LOAD_ANONYMOUS;
       }
     }
-    this._logger.info(debugObject(this._args, "args"));
 
     var me = this;
     request.onload = function() { me._response(true); };
     request.onerror = function() { me._response(false); };
     request.ontimeout = function() { me._response(false); };
     request.send(body);
     // Store the original stack so we can use it if there is an exception
     this._callStack = Error().stack;