From: Michael Tremer Date: Fri, 4 Aug 2017 21:14:55 +0000 (+0000) Subject: settings: Don't log skipped configuration lines X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ef1c5b4729d4700e678a16e1d24214227d5f59a;p=people%2Fstevee%2Fnetwork.git settings: Don't log skipped configuration lines Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.settings b/src/functions/functions.settings index f714e229..fad0cd7d 100644 --- a/src/functions/functions.settings +++ b/src/functions/functions.settings @@ -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})