CLI: Be less verbose in 'node update-config'

fixes #9116
This commit is contained in:
Michael Friedrich 2015-04-20 14:58:08 +02:00
parent 2932e01afa
commit 9b8eea3579
1 changed files with 5 additions and 5 deletions

View File

@ -235,7 +235,7 @@ int NodeUpdateConfigCommand::Run(const boost::program_options::variables_map& vm
host_attrs->Set("import", host_imports);
if (!RepositoryUtility::AddObject(object_paths, zone, "Host", host_attrs, changes, false)) {
Log(LogCritical, "cli")
Log(LogWarning, "cli")
<< "Cannot add node host '" << zone << "' to the config repository!\n";
}
@ -254,7 +254,7 @@ int NodeUpdateConfigCommand::Run(const boost::program_options::variables_map& vm
BOOST_FOREACH(const String& object_path, object_paths) {
if (object_path.Contains(host_pattern)) {
Log(LogWarning, "cli")
Log(LogNotice, "cli")
<< "Host '" << host << "' already existing. Skipping its creation.";
skip_host = true;
break;
@ -319,7 +319,7 @@ int NodeUpdateConfigCommand::Run(const boost::program_options::variables_map& vm
BOOST_FOREACH(const String& object_path, object_paths) {
if (object_path.Contains(service_pattern)) {
Log(LogWarning, "cli")
Log(LogNotice, "cli")
<< "Service '" << service << "' on Host '" << host << "' already existing. Skipping its creation.";
skip_service = true;
break;
@ -375,7 +375,7 @@ int NodeUpdateConfigCommand::Run(const boost::program_options::variables_map& vm
<< "Adding endpoint '" << endpoint << "' to the repository.";
if (!RepositoryUtility::AddObject(object_paths, endpoint, "Endpoint", endpoint_attrs, changes, false)) {
Log(LogCritical, "cli")
Log(LogWarning, "cli")
<< "Cannot add node endpoint '" << endpoint << "' to the config repository!\n";
}
@ -410,7 +410,7 @@ int NodeUpdateConfigCommand::Run(const boost::program_options::variables_map& vm
<< "Adding zone '" << zone << "' to the repository.";
if (!RepositoryUtility::AddObject(object_paths, zone, "Zone", zone_attrs, changes, false)) {
Log(LogCritical, "cli")
Log(LogWarning, "cli")
<< "Cannot add node zone '" << zone << "' to the config repository!\n";
}
}