linux-cp: set severity of noisy message to debug 86/37786/2
authorMatthew Smith <mgsmith@netgate.com>
Fri, 2 Dec 2022 21:00:03 +0000 (21:00 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Mon, 12 Dec 2022 14:48:22 +0000 (14:48 +0000)
Type: improvement

The log buffer and event buffer get lots of messages written like
"Processed 2 messages" by linux-nl when its enabled. This can crowd out
more important messages and should only actually be stored if debug
messages are desired. Change from logging with NL_INFO() to NL_DBG().

Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Change-Id: I9055432f7ef35d3e0ad59dce307d2b3c6284002f

src/plugins/linux-cp/lcp_nl.c

index 176d85d..8f2bffd 100644 (file)
@@ -353,7 +353,7 @@ nl_route_process_msgs (void)
   if (n_msgs)
     vec_delete (nm->nl_msg_queue, n_msgs, 0);
 
-  NL_INFO ("Processed %u messages", n_msgs);
+  NL_DBG ("Processed %u messages", n_msgs);
 
   return n_msgs;
 }