Bug 1595991 - [autoconfig] Shorten console output for HTML responses. a=jorgk DONTBUILD
authorBen Bucksch <ben.bucksch@beonex.com>
Wed, 13 Nov 2019 09:52:34 +0100
changeset 37500 716cec9c6ca52060ea9fc237f6f266d3ac16ddf7
parent 37499 42e6d3683bdabc3b1f2b71907b432e677bd079ac
child 37501 96490ef9899a8afef1e29ad5d4944aa34e3eb22d
push id396
push userclokep@gmail.com
push dateMon, 06 Jan 2020 23:11:57 +0000
reviewersjorgk
bugs1595991
Bug 1595991 - [autoconfig] Shorten console output for HTML responses. a=jorgk DONTBUILD
mail/components/accountcreation/content/readFromXML.js
--- a/mail/components/accountcreation/content/readFromXML.js
+++ b/mail/components/accountcreation/content/readFromXML.js
@@ -33,17 +33,19 @@ function readFromXML(clientConfigXML) {
     return value === undefined ? [] : value;
   }
   var exception;
   if (
     typeof clientConfigXML != "object" ||
     !("clientConfig" in clientConfigXML) ||
     !("emailProvider" in clientConfigXML.clientConfig)
   ) {
-    dump("client config xml = " + JSON.stringify(clientConfigXML) + "\n");
+    dump(
+      `client config xml = ${JSON.stringify(clientConfigXML).substr(0, 50)} \n`
+    );
     let stringBundle = getStringBundle(
       "chrome://messenger/locale/accountCreationModel.properties"
     );
     throw stringBundle.GetStringFromName("no_emailProvider.error");
   }
   var xml = clientConfigXML.clientConfig.emailProvider;
 
   var d = new AccountConfig();