jpirko / libteam

team netdevice library
GNU Lesser General Public License v2.1
225 stars 57 forks source link

How do I reduce logs ? #23

Open vogll opened 8 years ago

vogll commented 8 years ago

More log messages are generated to /var/log/syslog

teamd_team0[504]: Remapped hash "166" (delta 1137) to port eth0 ...

How do I reduce it ? I try change debug_level to 0, but still many logs ...

stcheng commented 7 years ago

+1 Jan 21 02:55:35 switch5 DEBUG teamd_PortChannel48[202]: Ethernet48: lacp info state: 0xBD.

These messages are still in the syslog even through my debug level is set to 0.

root@switch5:/# teamdctl PortChannel48 state dump | grep debug

"debug_level": 0,

jpirko commented 7 years ago

that is certainly a bug. debug_level==0 should prevend any debug messages to appear.

systemdarena commented 4 years ago

Still an issue, for additional information see https://lists.fedorahosted.org/archives/list/libteam@lists.fedorahosted.org/thread/JBB3BYA4XKB3XH2NAGVKI3ID2HBPKULK/

Looks like this is a very easy fix though, just need to change the function being called to teamd_log_dbgx().