Page 1 of 1

Style and fix wifi log messages

Posted: Fri Sep 16, 2022 6:45 pm
by cruvus
Hi,

is there a way to re-style the wifi log messages? I know the wifi binary is precompiled, but it seems that at least some part of the log message is controllable, as we can switch the log level and my custom log function (set by esp_log_set_vprintf) is fed which a special format parameter.
But there is no way to change that format string nor switch the time stamp to date/time.

Code: Select all

W (109675) wifi:sta_scan: STA is connecting, scan are not allowed!
W (8827685) wifi:age timer already deinit
BTW, my customers keep telling me I need to fix the "bad grammar" in those lines and there also seems to be a space missing between the tag and the actual message. ;)

Re: Style and fix wifi log messages

Posted: Sun Oct 02, 2022 8:49 am
by cruvus
What is the meaning of the warning "wifi:age timer already deinit"?
Also, I often get "wifi:<ba-add>idx:1 (ifx:0, aa:bb:cc:dd:ee:ff), tid:5, ssn:1, winSize:64" and similar warnings. Do I need to worry? Some documentation would be useful!

Re: Style and fix wifi log messages

Posted: Thu Oct 06, 2022 1:40 am
by axellin
cruvus wrote:
Sun Oct 02, 2022 8:49 am
Also, I often get "wifi:<ba-add>idx:1 (ifx:0, aa:bb:cc:dd:ee:ff), tid:5, ssn:1, winSize:64" and similar warnings. Do I need to worry? Some documentation would be useful!
https://espressif-docs.readthedocs-host ... -power-why

Re: Style and fix wifi log messages

Posted: Sat Oct 15, 2022 8:46 pm
by cruvus
Thanks. Is that an official FAQ? I read "© Copyright 2020, Espressif Systems (Shanghai) Co., Ltd" at the bottom.
Now this is odd! They wrote an FAQ explaining why a warning is not a warning instead of fixing it in the code?

Re: Style and fix wifi log messages

Posted: Tue Oct 18, 2022 7:28 am
by zhangyanjiao
will fix the log level to avoid misunderstanding (change W to I).