<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Zigbee traces use the wrong log level</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88820/zigbee-traces-use-the-wrong-log-level</link><description>I am using the light_bulb sample from NCS v2.0.0 with an nRF52840 DK board. I changed prj.conf to enable Warning traces from ZBOSS: 
 +# Enable traces on UART_1 (P1.02) @ 115200bps +CONFIG_ZIGBEE_ENABLE_TRACES=y +CONFIG_ZBOSS_TRACE_MASK=0x0003 +CONFIG_ZBOSS_TRACE_LOG_LEVEL_WRN</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Mon, 13 Jun 2022 22:50:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88820/zigbee-traces-use-the-wrong-log-level" /><item><title>RE: Zigbee traces use the wrong log level</title><link>https://test-devzone.nordicsemi.com/thread/372236?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 22:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4cc4508-235c-4978-83a2-dc20b66f1ff8</guid><dc:creator>user113934</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/88820/zigbee-traces-use-the-wrong-log-level/372187#372187"]what is the logging supposed to output?[/quote]
&lt;p&gt;I&amp;#39;m calling the function that ZBOSS uses to figure out whether to log a given message to the trace output:&lt;/p&gt;
&lt;pre&gt;extern int zb_trace_check(zb_uint_t level, zb_uint_t mask);&lt;/pre&gt;
&lt;p&gt;My test shows that the log mask and log level set in Kconfig are being respected by ZBOSS.&amp;nbsp; The problem is that the &lt;em&gt;callers&lt;/em&gt; to zb_trace_msg_port() are specifying unreasonably high log &lt;code&gt;level&lt;/code&gt; parameters, like logging routine buffer allocation events as errors.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/88820/zigbee-traces-use-the-wrong-log-level/372187#372187"]The zboss trace log is meant to log a bit, but unless they changed anything, the logs are encrypted, and they need to be sent to the company who provided the zboss stack (via us).[/quote]
&lt;p&gt;They are not encrypted.&amp;nbsp; The binary format is trivial to decode; I wrote a couple of simple python scripts to&amp;nbsp;work with them.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/88820/zigbee-traces-use-the-wrong-log-level/372187#372187"] Is there somethign particular you want to debug?&amp;nbsp;[/quote]
&lt;p&gt;Yes, I&amp;#39;d like to reduce the trace log output volume because it&amp;#39;s generating output faster than the serial/CDC output can handle it.&amp;nbsp; I&amp;#39;m troubleshooting a couple of different ZBOSS issues right now and this bug is potentially an impediment.&lt;/p&gt;
&lt;p&gt;Could you please ask DSR to fix the logging levels so that configuring e.g.&amp;nbsp;CONFIG_ZBOSS_TRACE_LOG_LEVEL_WRN=y only outputs warnings rather than spewing debug&amp;nbsp;traces into the binary trace log?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee traces use the wrong log level</title><link>https://test-devzone.nordicsemi.com/thread/372187?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 14:02:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a3796a7-2199-4178-9791-ddfd862fd2d3</guid><dc:creator>user26071</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the basic questions, but what is the logging supposed to output?&lt;/p&gt;
[quote user=""]I: TRACE: 2: 1 1 1 0 0&lt;br /&gt;I: TRACE: 2: 0 0 0 0 0[/quote]
&lt;p&gt;The zboss trace log is meant to log a bit, but unless they changed anything, the logs are encrypted, and they need to be sent to the company who provided the zboss stack (via us). Is there somethign particular you want to debug?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>