coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
516 stars 258 forks source link

How can I disable debug messages #318

Closed streetonice closed 7 years ago

streetonice commented 7 years ago

Hi everybody i'm using Openwrt Snapshots version and Coovachilli 1.3.2

How can I disable debug messages show on syslog (logread)

Fri Dec 9 12:39:06 2016 user.debug : IPv6 disabled Fri Dec 9 12:39:06 2016 user.debug : DHCP Listen: 10.11.0.1 Fri Dec 9 12:39:07 2016 user.debug : UAM Listen: 10.11.0.1 Fri Dec 9 12:39:07 2016 user.debug : uamdomain facebook.com Fri Dec 9 12:39:07 2016 user.debug : PID 16471 saving options to /var/run/chilli.16351.cfg.bi

Thank you

gbaligh commented 7 years ago

Hi,

Can you try to set "loglevel" option to 0 ? This will set the syslog level to Error message only.

streetonice commented 7 years ago

Thank you for reply , I try to run "chilli --loglevel=0" in command line, not working debug messages still show on syslog (logread)

13360 root 4264 S chilli --loglevel=0

after run

Tue Dec 13 11:18:31 2016 user.debug : IPv6 disabled Tue Dec 13 11:18:31 2016 user.debug : DHCP Listen: 10.11.0.1 Tue Dec 13 11:18:31 2016 user.debug : UAM Listen: 10.11.0.1 Tue Dec 13 11:18:31 2016 user.debug : uamdomain google.com Tue Dec 13 11:18:31 2016 user.debug : PID 13574 saving options to /var/run/chilli.13360.cfg.bin

any idea?

Thank you

nzamps commented 7 years ago

Those should be the only lines that show in syslog. Do any appear after that? The problem is the setlogmask to filter the msgs comes after the options are loaded and those debug lines are printed.

gbaligh commented 7 years ago

related to #119

streetonice commented 7 years ago

Thank you everybody i got it