From f519b4b222ab9253e70b6cda7605d7c58ff771b4 Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Fri, 7 Jul 2017 02:07:43 +0700 Subject: [PATCH] Change error message when read callback name is duplicated while registering it. The message `Check for duplicate "LoadPlugin" lines` is obsolete, as there is a special check in `plugin_load()` for this case. --- src/daemon/plugin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/daemon/plugin.c b/src/daemon/plugin.c index d22bd940..ae99d5fd 100644 --- a/src/daemon/plugin.c +++ b/src/daemon/plugin.c @@ -1126,8 +1126,7 @@ static int plugin_insert_read(read_func_t *rf) { if (le != NULL) { pthread_mutex_unlock(&read_lock); WARNING("The read function \"%s\" is already registered. " - "Check for duplicate \"LoadPlugin\" lines " - "in your configuration!", + "Check for duplicates in your configuration!", rf->rf_name); return EINVAL; } -- 2.11.0