Skip to contentSkip to conversation

ipconfig: Demote RTNL RTM_{ADD,DEL}ROUTE logs from info to DBG.

PATCH In review Grant Erickson 2 participants 2 messages Dec 21, 2023 – Dec 23, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipconfig: Demote RTNL RTM_{ADD,DEL}ROUTE logs from info to DBG.

With the "continuous" online check mode, logs can become dominated by Linux Routing Netlink (rtnl) 'RTM_{ADD,DEL}ROUTE' entries every time WISPr adds/deletes a host route for the online check.

This demotes those log invocations from 'connman_info' to 'DBG'.

---
 src/ipconfig.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/ipconfig.c +2 -2
index 5ec619fa7e6b..c2d7d2bc02b8 100644
@@ -1102,7 +1102,7 @@ void __connman_ipconfig_newroute(int index, int family, unsigned char scope,
 		}
 	}
 
-	connman_info("%s {add} route %s/%u gw %s scope %u <%s> table %u <%s> "
+	DBG("%s {add} route %s/%u gw %s scope %u <%s> table %u <%s> "
 		"metric %u",
 		ifname, dst, dst_prefixlen, gateway, scope, scope2str(scope),
 		table_id, __connman_inet_table2string(table_id), metric);
@@ -1174,7 +1174,7 @@ void __connman_ipconfig_delroute(int index, int family, unsigned char scope,
 		}
 	}
 
-	connman_info("%s {del} route %s/%u gw %s scope %u <%s> table %u <%s> "
+	DBG("%s {del} route %s/%u gw %s scope %u <%s> table %u <%s> "
 		"metric %u",
 		ifname, dst, dst_prefixlen, gateway, scope, scope2str(scope),
 		table_id, __connman_inet_table2string(table_id), metric);
Signature · 1 line
2.42.0
#1 lore raw

Hi Grant,

Quoted 8 lines

With the "continuous" online check mode, logs can become dominated by Linux Routing Netlink (rtnl) 'RTM_{ADD,DEL}ROUTE' entries every time WISPr adds/deletes a host route for the online check.

This demotes those log invocations from 'connman_info' to 'DBG'.
---
src/ipconfig.c | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)

patch has been applied.

Regards

Marcel