From 93371352498287ff5867bfa0b1f43eda8eca41aa Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Wed, 11 Jan 2017 19:14:46 +0100 Subject: [PATCH] Give only CLI warnings if feature is already disabled refs #121 refs #4909 Signed-off-by: Michael Friedrich --- lib/cli/featureutility.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/cli/featureutility.cpp b/lib/cli/featureutility.cpp index f47d080cb..9de11d000 100644 --- a/lib/cli/featureutility.cpp +++ b/lib/cli/featureutility.cpp @@ -146,9 +146,8 @@ int FeatureUtility::DisableFeatures(const std::vector& features) String target = features_enabled_dir + "/" + feature + ".conf"; if (!Utility::PathExists(target) ) { - Log(LogCritical, "cli") - << "Cannot disable feature '" << feature << "'. Target file '" << target << "' does not exist."; - errors.push_back(feature); + Log(LogWarning, "cli") + << "Feature '" << feature << "' already disabled."; continue; } -- 2.40.0