Skip to content
Snippets Groups Projects

Use Info loglevel if SystemConfigBlueprint is not available

Merged Raghunandan Netrapalli Madhusudhan requested to merge use-correct-log-label into develop
1 file
+ 7
1
Compare changes
  • Side-by-side
  • Inline
@@ -249,6 +249,12 @@ xmlDocPtr SystemConfigImporter::ImportSystemConfigContent(const std::string& fil
@@ -249,6 +249,12 @@ xmlDocPtr SystemConfigImporter::ImportSystemConfigContent(const std::string& fil
{
{
xmlInitParser();
xmlInitParser();
 
if (!std::filesystem::exists(filename))
 
{
 
LOG_INTERN(LogLevel::Info) << filename + " does not exist";
 
return nullptr;
 
}
 
xmlDocPtr document
xmlDocPtr document
= xmlReadFile(filename.c_str(),
= xmlReadFile(filename.c_str(),
NULL, // NOLINT(modernize-use-nullptr)
NULL, // NOLINT(modernize-use-nullptr)
@@ -466,7 +472,7 @@ bool SystemConfigImporter::Import(const std::string& filename,
@@ -466,7 +472,7 @@ bool SystemConfigImporter::Import(const std::string& filename,
}
}
catch (const std::runtime_error& e)
catch (const std::runtime_error& e)
{
{
LOG_INTERN(LogLevel::Error) << "SystemConfig import failed: " + std::string(e.what());
LOG_INTERN(LogLevel::Info) << "SystemConfig import failed: " + std::string(e.what());
return false;
return false;
}
}
}
}
Loading