Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3218 - hostapd log_level ingored #8061

Open
openwrt-bot opened this issue Jul 8, 2020 · 4 comments
Open

FS#3218 - hostapd log_level ingored #8061

openwrt-bot opened this issue Jul 8, 2020 · 4 comments
Labels
flyspray release/19.07

Comments

@openwrt-bot
Copy link

openwrt-bot commented Jul 8, 2020

coelner:

Model: TP-Link Archer C7 v2
Architecture: Qualcomm Atheros QCA9558 ver 1 rev 0
Firmware Version :OpenWrt 19.07.2 r10947-65030d81f3 / LuCI openwrt-19.07 branch git-20.155.55664-f35803e
Kernel Version: 4.14.171

root@router:/tmp/run# uci show wireless | grep log wireless.radio0.log_level='3' wireless.radio1.log_level='3' root@router:/tmp/run# cat hostapd-phy* | grep log logger_syslog=127 logger_syslog_level=3 logger_stdout=127 logger_stdout_level=3 logger_syslog=127 logger_syslog_level=3 logger_stdout=127 logger_stdout_level=3 root@router:/tmp/run# hostapd_cli -i wlan0 log_level Current level: INFO Timestamp: 0 root@router:/tmp/run# hostapd_cli -i wlan1 log_level Current level: INFO Timestamp: 0 root@router:/tmp/run# hostapd_cli -i wlan1-1 log_level Current level: INFO Timestamp: 0 root@router:/tmp/run# hostapd_cli -i wlan1-1 log_level 2 FAIL root@router:/tmp/run# opkg list-installed | grep hostapd hostapd-common - 2019-08-08-ca8c2bd2-4 hostapd-utils - 2019-08-08-ca8c2bd2-4 root@router:/tmp/run# opkg list-installed | grep wpad wpad - 2019-08-08-ca8c2bd2-4

Hello, I have a problem with the loglevel of hostapd. However the loglevel get ignored by the daemon and even the direct manipulation over hostapd_cli failed. Because of this the syslog get spammed by all the info messages.
It is predefined here: https://github.com/openwrt/openwrt/blob/openwrt-19.07/package/network/services/hostapd/Config.in
But I don't know why it is unchangeable at all

@openwrt-bot
Copy link
Author

openwrt-bot commented Jul 25, 2020

coelner:

I build the 19.07.3 version from the github branch and set the default value to 4.

Actually this changes nothing, the ringbuffer from logd contains all messages. That leads me to this topic: https://forum.openwrt.org/t/logd-doesnt-honor-conloglevel-17-01-4-r3560-79f57e422d/8196/7

@openwrt-bot
Copy link
Author

openwrt-bot commented Jul 29, 2020

rmelotte:

I also noticed the log_level is ignored, even if you set it through UCI.
uci set wireless.radio0.log_level=1 correctly sets it in /var/run/hostapd_phyX.conf, but the log level used by hostapd stays the same (INFO).

As for why the hostapd_cli call you pasted doesn't work, it's because it uses the level name instead of a number.
So to set it to level 4, try:

hostapd_cli -i wlan0 log_level ERROR

The available levels are:

Following priority levels are used:

  • 0 = MSGDUMP
  • 1 = DEBUG
  • 2 = INFO
  • 3 = WARNING
  • 4 = ERROR

@openwrt-bot
Copy link
Author

openwrt-bot commented Aug 18, 2020

coelner:

thanks for the hint with the hostapd_cli and for confirming the bug

@openwrt-bot
Copy link
Author

openwrt-bot commented Sep 9, 2021

coelner:

the bug exists furthermore under 21.02

@aparcar aparcar added the release/19.07 label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray release/19.07
Projects
None yet
Development

No branches or pull requests

2 participants