]> git.ipfire.org Git - people/ms/network.git/commitdiff
settings: Don't log skipped configuration lines
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Aug 2017 21:14:55 +0000 (21:14 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Aug 2017 21:14:55 +0000 (21:14 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.settings

index f714e2295ca450baf8aa3f805511097b50078bcf..fad0cd7dde6cf2b0bc7e032746c2349d3f43a479 100644 (file)
@@ -55,13 +55,7 @@ settings_read() {
 
                                # If valid keys is set, key must be in the list.
                                if [ -n "${valid_keys}" ]; then
-                                       if ! list_match ${key} ${valid_keys}; then
-                                               if ! enabled ignore_superfluous_settings; then
-                                                       log DEBUG "Ignoring configuration setting: ${key}"
-                                               fi
-
-                                               continue
-                                       fi
+                                       list_match ${key} ${valid_keys} || continue
                                fi
 
                                val=$(cli_get_val ${line})