<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ArcGIS Maps SDK for Javascript 4.x - disable console error messages in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-maps-sdk-for-javascript-4-x-disable-console/m-p/1316833#M81897</link>
    <description>&lt;P&gt;How can we disable following types of error messages displayed on the browser console under Developer Tools? Is there any flag with 4.x API?&lt;/P&gt;&lt;P&gt;init.js:203 Uncaught (in promise) q&amp;nbsp;{name: 'identity-manager:user-aborted', details: undefined, message: 'ABORTED'}&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 13:01:38 GMT</pubDate>
    <dc:creator>BhavinSanghani</dc:creator>
    <dc:date>2023-08-09T13:01:38Z</dc:date>
    <item>
      <title>ArcGIS Maps SDK for Javascript 4.x - disable console error messages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-maps-sdk-for-javascript-4-x-disable-console/m-p/1316833#M81897</link>
      <description>&lt;P&gt;How can we disable following types of error messages displayed on the browser console under Developer Tools? Is there any flag with 4.x API?&lt;/P&gt;&lt;P&gt;init.js:203 Uncaught (in promise) q&amp;nbsp;{name: 'identity-manager:user-aborted', details: undefined, message: 'ABORTED'}&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 13:01:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-maps-sdk-for-javascript-4-x-disable-console/m-p/1316833#M81897</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2023-08-09T13:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Maps SDK for Javascript 4.x - disable console error messages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-maps-sdk-for-javascript-4-x-disable-console/m-p/1317001#M81911</link>
      <description>&lt;P&gt;You can use the filtering tools in your Developer Tools console to hide any unwanted messages, as described &lt;A href="https://devinschulz.com/filter-out-multiple-console-messages-in-google-chrome/" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;and &lt;A href="https://developer.chrome.com/docs/devtools/console/reference/#filter" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp; For example, I prefer not to be inundated with error messages about missing tiles, so I usually have the filter:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-blankTile=false -esri.views.2d.layers.TileLayerView2D&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In your case, perhaps you could have:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-identity-manager:user-aborted&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 17:11:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-maps-sdk-for-javascript-4-x-disable-console/m-p/1317001#M81911</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-08-09T17:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Maps SDK for Javascript 4.x - disable console error messages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-maps-sdk-for-javascript-4-x-disable-console/m-p/1317031#M81913</link>
      <description>&lt;P&gt;Thanks for replying&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;I just don't want to display these console messages coming from the API to our customers as they might be least concerned with that. I know they can be helpful for debugging. But it's better if the API has some flag value or logging level to set.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 17:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-maps-sdk-for-javascript-4-x-disable-console/m-p/1317031#M81913</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2023-08-09T17:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Maps SDK for Javascript 4.x - disable console error messages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-maps-sdk-for-javascript-4-x-disable-console/m-p/1317053#M81917</link>
      <description>&lt;P&gt;Good Day&lt;BR /&gt;&lt;BR /&gt;This is how I disable the console messages.&amp;nbsp; This allows you to turn off different message types, so in production you can disable all logging, which is generally a good idea.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const disableErr: boolean = false;
const disableLog: boolean = false;
const disableTime: boolean = true;

if (window &amp;amp;&amp;amp; disableLog) {
  window.console.log = () =&amp;gt; {
  };

  window.console.table = () =&amp;gt; {
  };

  window.console.info = () =&amp;gt; {
  };
}

if (window) {
  if (disableErr) {
    window.console.error = () =&amp;gt; {
    };
  }

  if (disableTime) {
    window.console.time = () =&amp;gt; {
    };

    window.console.timeLog = () =&amp;gt; {
    };

    window.console.timeEnd = () =&amp;gt; {
    };
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 18:06:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-maps-sdk-for-javascript-4-x-disable-console/m-p/1317053#M81917</guid>
      <dc:creator>AndrewMurdoch1</dc:creator>
      <dc:date>2023-08-09T18:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Maps SDK for Javascript 4.x - disable console error messages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-maps-sdk-for-javascript-4-x-disable-console/m-p/1317060#M81920</link>
      <description>&lt;P&gt;Ok, I see.&amp;nbsp; Unfortunately, the API has no such flag.&amp;nbsp; Attached is every use of "console" in the API, and you can see it is quite often used unconditionally.&amp;nbsp; Perhaps the best alternative is to override the console object's functions in a manner as mentioned by Andrew.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 18:15:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-maps-sdk-for-javascript-4-x-disable-console/m-p/1317060#M81920</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-08-09T18:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Maps SDK for Javascript 4.x - disable console error messages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-maps-sdk-for-javascript-4-x-disable-console/m-p/1317251#M81931</link>
      <description>&lt;P&gt;Looks like Andrew has given alternative way to achieve it.&amp;nbsp;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/51173"&gt;@AndrewMurdoch1&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;&amp;nbsp;!&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I found esri/config has log level and that can be useful.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 15:46:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-maps-sdk-for-javascript-4-x-disable-console/m-p/1317251#M81931</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2023-08-10T15:46:38Z</dc:date>
    </item>
  </channel>
</rss>

