<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to avoid ble_scan log output enabled by default.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106027/how-to-avoid-ble_scan-log-output-enabled-by-default</link><description>I would like to know how could disable the log of ble_scan, as it can be seen in the following image: 
 
 I only want to view the the app log (call to LOG in the modified handler function) 
 
 Programmed calling NRF_LOG_INFO in this way: 
 
 
 How could</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Nov 2023 16:00:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106027/how-to-avoid-ble_scan-log-output-enabled-by-default" /><item><title>RE: How to avoid ble_scan log output enabled by default.</title><link>https://devzone.nordicsemi.com/thread/458165?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 16:00:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b86cda5-c9c7-40bb-be1d-939c9b2b8784</guid><dc:creator>Victor Ruiz 26</dc:creator><description>&lt;p&gt;Yes, that was my problem, i was not filtering by dependencies using Find and Replace tool.&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to avoid ble_scan log output enabled by default.</title><link>https://devzone.nordicsemi.com/thread/458018?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 09:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ab2953c-e717-4910-ac9c-a36bef952707</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Victor,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You would need to do a search in &amp;quot;dependencies&amp;quot; as well. If you do a search like this, you will find that it&amp;#39;s declared as the BLE observer in nrf_ble_scan.h:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1701249065736v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to avoid ble_scan log output enabled by default.</title><link>https://devzone.nordicsemi.com/thread/457956?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 18:57:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bda6d74-7029-4f11-96ed-68e44588cc25</guid><dc:creator>Victor Ruiz 26</dc:creator><description>&lt;p&gt;The text is printed in the nrf_ble_scan_on_ble_evt function:&lt;br /&gt;&lt;img style="max-height:373px;max-width:397px;" alt=" " height="373" src="https://devzone.nordicsemi.com/resized-image/__size/794x746/__key/communityserver-discussions-components-files/4/pastedimage1701197687250v1.png" width="397" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But this function it is not called in any part of the code, so &amp;iquest;how is this fragment of code invoked?&lt;br /&gt;&lt;img style="max-height:87px;max-width:456px;" alt=" " height="87" src="https://devzone.nordicsemi.com/resized-image/__size/912x174/__key/communityserver-discussions-components-files/4/pastedimage1701197737113v2.png" width="456" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;In the n of ble scanner, the previous function it is not passed as handler, as it can be seen in the following image:&lt;br /&gt;&lt;img style="max-height:278px;max-width:362px;" alt=" " height="278" src="https://devzone.nordicsemi.com/resized-image/__size/724x556/__key/communityserver-discussions-components-files/4/pastedimage1701197819604v3.png" width="362" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, i would like to understand how the automatically &amp;lt;info&amp;gt; ble_scan log is printed and why.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to avoid ble_scan log output enabled by default.</title><link>https://devzone.nordicsemi.com/thread/457299?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2023 10:04:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaa8cb87-a6ac-46f9-8232-dcdcf0670852</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Victor,&amp;nbsp;&lt;br /&gt;I assume the log text was added by you. Could you show where you print them ? As far as I know it&amp;#39;s not in the default SDK&amp;#39;s code.&lt;br /&gt;Please check the nrf_ble_scan.c file.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to avoid ble_scan log output enabled by default.</title><link>https://devzone.nordicsemi.com/thread/457234?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2023 18:43:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05c7c811-ea94-43ec-8309-55d85063ef65</guid><dc:creator>Victor Ruiz 26</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5165.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../5165.sdk_5F00_config.h&lt;/a&gt;&lt;br /&gt;Here is my sdk_config (the macros above are enabled, because the disabling of them did not work).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>