Constant debug logging to /var/log/network/default.log

Questions about SNMP, Power, System, Logs, disk, & RAID.
Post Reply
Kevin42
New here
Posts: 2
Joined: Sat Oct 29, 2022 7:31 pm
Location: Slovenia

Constant debug logging to /var/log/network/default.log

Post by Kevin42 »

Hello,
I have a TS-231AK with firmware v5.0.1 and I notice that every few seconds it is logging to /var/log/network/default.log and with a lot of DEBUG messages.
How do I disable this log, or at least change the logging level from DEBUG to CRITICAL? I have tried dmseg -n 2 but this had no effect.

I attach an example log, with many lines like this:

Code: Select all

2022-10-29 14:44:08.356 1979110448 DEBUG [NetworkInterface.cpp:6332] int check_interface_config_ip6_gw(char*) >>> Enter
2022-10-29 14:44:08.356 1979110448 DEBUG [NetworkInterface.cpp:593] int create_NI(T1, NetworkInterface**, T2&) [with T1 = int; T2 = std::basic_string<char>] >>> Enter
2022-10-29 14:44:08.356 1979110448 DEBUG [NetworkInterface.cpp:946] NetworkInterface::NetworkInterface(int, std::string&) >>> Enter
2022-10-29 14:44:08.356 1979110448 DEBUG [NetworkInterface.cpp:1223] int NetworkInterface::set_ifindex() >>> Enter
2022-10-29 14:44:08.356 1979110448 DEBUG [NetworkInterface.cpp:1237] int NetworkInterface::set_ifindex() >>> Exit 0
2022-10-29 14:44:08.356 1979110448 DEBUG [NetworkInterface.cpp:895] int NetworkInterface::get_configurations() >>> Enter
2022-10-29 14:44:08.356 1979110448 DEBUG [nmconfig.cpp:143] int ini_file_to_mem(std::string, CSimpleIniA&) >>> Enter
2022-10-29 14:44:08.356 1979110448 DEBUG [nmconfig.cpp:103] int _ini_ncaas_to_mem(std::string, CSimpleIniA&) >>> Enter
2022-10-29 14:44:08.356 1979110448 DEBUG [nmconfig.cpp:116] int _ini_ncaas_to_mem(std::string, CSimpleIniA&) >>> Loading /etc/config/nm.conf
2022-10-29 14:44:08.357 1979110448 DEBUG [nmconfig.cpp:127] int _ini_ncaas_to_mem(std::string, CSimpleIniA&) >>> qs_io_read size: 3291
2022-10-29 14:44:08.357 1979110448 DEBUG [nmconfig.cpp:56] int ini_data_to_mem(std::string, CSimpleIniA&) >>> Enter
2022-10-29 14:44:08.358 1979110448 DEBUG [nmconfig.cpp:67] int ini_data_to_mem(std::string, CSimpleIniA&) >>> Exit 0
2022-10-29 14:44:08.358 1979110448 DEBUG [nmconfig.cpp:137] int _ini_ncaas_to_mem(std::string, CSimpleIniA&) >>> Exit 0
2022-10-29 14:44:08.359 1979110448 DEBUG [nmconfig.cpp:154] int ini_file_to_mem(std::string, CSimpleIniA&) >>> Exit 0
2022-10-29 14:44:08.359 1979110448 DEBUG [nmconfig.cpp:808] std::string get_sname_by_ifname(CSimpleIniA&, std::string) >>> Enter
2022-10-29 14:44:08.359 1979110448 DEBUG [nmconfig.cpp:828] std::string get_sname_by_ifname(CSimpleIniA&, std::string) >>> ifname: eth0, sname: interface0
2022-10-29 14:44:08.359 1979110448 DEBUG [nmconfig.cpp:830] std::string get_sname_by_ifname(CSimpleIniA&, std::string) >>> Exit interface0
2022-10-29 14:44:08.359 1979110448 DEBUG [NetworkInterface.cpp:698] int NetworkInterface::get_conf() >>> Enter
You do not have the required permissions to view the files attached to this post.
User avatar
dolbyman
Guru
Posts: 35213
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Constant debug logging to /var/log/network/default.log

Post by dolbyman »

complain to qnap..qnap writes logs to all disks constantly (many threads about hdd standby triuble)
Kevin42
New here
Posts: 2
Joined: Sat Oct 29, 2022 7:31 pm
Location: Slovenia

Re: Constant debug logging to /var/log/network/default.log

Post by Kevin42 »

Some success! I discovered the logging configuration files in:
/usr/local/network/log_config.

By editing all the files to disable DEBUG, INFO and WARN level, and restarting the network services, the logs are much quieter now.

Restart networking with:
# /etc/init.d/network.sh restart.
ogroni
New here
Posts: 2
Joined: Sun Jan 29, 2023 7:38 am

Re: Constant debug logging to /var/log/network/default.log

Post by ogroni »

After the reboot, all files in /usr/local/network/log_config/*.conf are back in their original state.
Does anyone have an idea where I can find the source files for starting qnap in order to edit them?
thx
User avatar
dolbyman
Guru
Posts: 35213
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Constant debug logging to /var/log/network/default.log

Post by dolbyman »

put your changes in a startup script

https://wiki.qnap.com/wiki/Running_Your ... at_Startup
ogroni
New here
Posts: 2
Joined: Sun Jan 29, 2023 7:38 am

Re: Constant debug logging to /var/log/network/default.log

Post by ogroni »

thx, works very fine !
Post Reply

Return to “System & Disk Volume Management”