Change error message when read callback name is duplicated while registering it.
authorPavel Rochnyack <pavel2000@ngs.ru>
Thu, 6 Jul 2017 19:07:43 +0000 (02:07 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Mon, 24 Jul 2017 06:31:27 +0000 (13:31 +0700)
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

index d22bd94..ae99d5f 100644 (file)
@@ -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;
   }