File dpdk_telemetry-plugin-fix-some-logs-to-be-debug.patch of Package collectd.23723
From: Reshma Pattan <reshma.pattan@intel.com>
Subject: dpdk_telemetry plugin: fix some logs to be debug
References: jsc#SLE-23472
Patch-Mainline: collectd-5.11.0
Git-commit: 76070245a10d2a9b666e9196d393a0e8ebdf64d1
Git-repo: git://github.com/collectd/collectd.git.git
Fix some of the logs level to be debug instead of info.
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Signed-off-by: <trenn@suse.com>
diff --git a/src/dpdk_telemetry.c b/src/dpdk_telemetry.c
index 94bba602..512a7d73 100755
--- a/src/dpdk_telemetry.c
+++ b/src/dpdk_telemetry.c
@@ -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;