]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
dpdk_telemetry plugin: fix some logs to be debug
authorReshma Pattan <reshma.pattan@intel.com>
Fri, 11 Oct 2019 16:13:30 +0000 (17:13 +0100)
committerReshma Pattan <reshma.pattan@intel.com>
Fri, 11 Oct 2019 16:44:24 +0000 (17:44 +0100)
Fix some of the logs level to be debug instead of info.

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
src/dpdk_telemetry.c

index 94bba60291e013090165cac7c751eea396a90776..512a7d735755679e0da58a542680a028d9fb5007 100755 (executable)
@@ -67,7 +67,7 @@ static char g_dpdk_path[BUF_SIZE];
 static int dpdk_telemetry_config(oconfig_item_t *ci) {
   int ret, i;
 
-  INFO(PLUGIN_NAME ": %s:%d", __FUNCTION__, __LINE__);
+  DEBUG(PLUGIN_NAME ": %s:%d", __FUNCTION__, __LINE__);
 
   for (i = 0; i < ci->children_num; i++) {
     oconfig_item_t *child = ci->children + i;
@@ -245,7 +245,7 @@ static int dpdk_telemetry_cleanup(void) {
 }
 
 static int dpdk_telemetry_socket_init(void) {
-  INFO(PLUGIN_NAME ": %s:%d", __FUNCTION__, __LINE__);
+  DEBUG(PLUGIN_NAME ": %s:%d", __FUNCTION__, __LINE__);
   char message[BUF_SIZE];
 
   /* Here we look up the length of the g_dpdk_path string
@@ -321,7 +321,7 @@ static int dpdk_telemetry_socket_init(void) {
 }
 
 static int dpdk_telemetry_shutdown(void) {
-  INFO(PLUGIN_NAME ": %s:%d", __FUNCTION__, __LINE__);
+  DEBUG(PLUGIN_NAME ": %s:%d", __FUNCTION__, __LINE__);
   char msg[BUF_SIZE];
   int ret;
 
@@ -340,7 +340,7 @@ static int dpdk_telemetry_shutdown(void) {
 }
 
 static int dpdk_telemetry_read(user_data_t *ud) {
-  INFO(PLUGIN_NAME ": %s:%d", __FUNCTION__, __LINE__);
+  DEBUG(PLUGIN_NAME ": %s:%d", __FUNCTION__, __LINE__);
   char buffer[BUF_SIZE];
   int bytes = 0, ret;
   char *json_string[MAX_COMMANDS] = {"{\"action\":0,\"command\":"
@@ -380,7 +380,7 @@ static int dpdk_telemetry_read(user_data_t *ud) {
 
 static int dpdk_telemetry_init(void) {
 
-  INFO(PLUGIN_NAME ": %s:%d", __FUNCTION__, __LINE__);
+  DEBUG(PLUGIN_NAME ": %s:%d", __FUNCTION__, __LINE__);
 
   client.s_send = -1;
   client.s_recv = -1;