Style and fix wifi log messages

cruvus
Posts: 59
Joined: Fri Jul 08, 2022 5:08 pm
Location: Planet Earth

Style and fix wifi log messages

Postby cruvus » Fri Sep 16, 2022 6:45 pm

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. ;)
ESP32 / ESP-IDF 5.1.4

cruvus
Posts: 59
Joined: Fri Jul 08, 2022 5:08 pm
Location: Planet Earth

Re: Style and fix wifi log messages

Postby cruvus » Sun Oct 02, 2022 8:49 am

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!
ESP32 / ESP-IDF 5.1.4

axellin
Posts: 200
Joined: Mon Sep 17, 2018 9:09 am

Re: Style and fix wifi log messages

Postby axellin » Thu Oct 06, 2022 1:40 am

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

cruvus
Posts: 59
Joined: Fri Jul 08, 2022 5:08 pm
Location: Planet Earth

Re: Style and fix wifi log messages

Postby cruvus » Sat Oct 15, 2022 8:46 pm

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?
ESP32 / ESP-IDF 5.1.4

zhangyanjiao
Posts: 34
Joined: Mon Aug 28, 2017 3:27 am

Re: Style and fix wifi log messages

Postby zhangyanjiao » Tue Oct 18, 2022 7:28 am

will fix the log level to avoid misunderstanding (change W to I).

Who is online

Users browsing this forum: Bing [Bot] and 136 guests