From fbddf8d2f0a8003e04a4c84bd91f32829040ccdc Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Fri, 9 Nov 2018 07:12:07 +0000 Subject: [PATCH] Cleanup: Removed completly. This adds a error level log line to the block in case unknown nodes are used as we do for other blocks already. Closes: #2085 --- src/cfgfile.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cfgfile.c b/src/cfgfile.c index e486212d..8f306e1c 100644 --- a/src/cfgfile.c +++ b/src/cfgfile.c @@ -1164,9 +1164,6 @@ static void _parse_limits(xmlDocPtr doc, __read_int(doc, node, &configuration->body_size_limit, " must not be empty."); } else if (xmlStrcmp(node->name, XMLSTR("queue-size")) == 0) { __read_unsigned_int(doc, node, &configuration->queue_size_limit, " must not be empty."); - } else if (xmlStrcmp(node->name, XMLSTR("threadpool")) == 0) { - ICECAST_LOG_WARN(" functionality was removed in Icecast" - " version 2.3.0, please remove this from your config."); } else if (xmlStrcmp(node->name, XMLSTR("client-timeout")) == 0) { __read_int(doc, node, &configuration->client_timeout, " must not be empty."); } else if (xmlStrcmp(node->name, XMLSTR("header-timeout")) == 0) { @@ -1184,6 +1181,8 @@ static void _parse_limits(xmlDocPtr doc, xmlFree(tmp); } else if (xmlStrcmp(node->name, XMLSTR("burst-size")) == 0) { __read_unsigned_int(doc, node, &configuration->burst_size, " must not be empty."); + } else if (node->type == XML_ELEMENT_NODE) { + ICECAST_LOG_ERROR("Unknown config tag: %s", node->name); } } while ((node = node->next)); }