<?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>nRF Connect 1.8.0 SDK NVS Suppress Messages</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93874/nrf-connect-1-8-0-sdk-nvs-suppress-messages</link><description>Hello, 
 I&amp;#39;m working with the nRF Connect NVS module on the nRF9160. Every time there is a read/write to NVS the messages: 
 I: 3 Sectors of 4096 bytes I: alloc wra: 0, 668 I: data wra: 0, 4c0 D: Recovering last ate from sector 0 
 Are getting printed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Nov 2022 17:25:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93874/nrf-connect-1-8-0-sdk-nvs-suppress-messages" /><item><title>RE: nRF Connect 1.8.0 SDK NVS Suppress Messages</title><link>https://devzone.nordicsemi.com/thread/395862?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2022 17:25:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96c4f672-6ec8-41de-a538-053bf6358198</guid><dc:creator>jake11212</dc:creator><description>&lt;p&gt;That was it thank you!&amp;nbsp; And thanks for explaining how you found it, that&amp;#39;s really helpful.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect 1.8.0 SDK NVS Suppress Messages</title><link>https://devzone.nordicsemi.com/thread/395664?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2022 01:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5961e2ee-81be-42bb-b86f-6f59370cb19d</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Jake,&lt;/p&gt;
&lt;p&gt;In your prj.conf, simply&amp;nbsp;add (or modify, if it exists)&lt;/p&gt;
&lt;p&gt;&lt;code&gt;CONFIG_NVS_LOG_LEVEL_DBG=n&lt;/code&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;That should be it.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I found out by doing&amp;nbsp;a quick search for &amp;quot;recovering last&amp;quot; in the Zephyr tree and build folder, and seeing&amp;nbsp;that the messages are coming from &amp;quot;LOG_DBG&amp;quot; statements in the NVS library.&amp;nbsp;See for example &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/subsys/fs/nvs/nvs.c#L446"&gt;line 446&lt;/a&gt; in&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;code&gt;.../ncs/v2.1.2/zephyr/subsys/fs/nvs/nvs.c&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Just in case you weren&amp;#39;t aware, you can basically consider &amp;quot;LOG&amp;quot; statements as print statements (except you have some more control at compile time over whether&amp;nbsp;you want them to show up). DEBUG is the most verbose level of logging available in Zephyr, used only for troubleshooting some&amp;nbsp;software component - so safe to say these can be turned off most of the time.&lt;/p&gt;
&lt;p&gt;You can see that the NVS log module gets registered on line 17 in the same file, with a specified log level as an argument.&amp;nbsp;Usually you configure&amp;nbsp;your desired log level for each declared log module in prj.conf, with for example &amp;nbsp;&amp;quot;&lt;code&gt;CONFIG_NVS_LOG_LEVEL=2&lt;/code&gt;&amp;quot; (Level 2&amp;nbsp;will print errors and warnings, but no more). This way you can be precise about&amp;nbsp;how much information you want to get from your various modules.&lt;/p&gt;
&lt;p&gt;You could also set a global max&amp;nbsp;for your log levels, or turn off logging entirely. (&lt;code&gt;CONFIG_LOG=n&lt;/code&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul Pathak&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>