Reduce the log level for missing env macros to debug

refs #6460
This commit is contained in:
Peter Eckel 2018-07-29 15:08:12 +02:00
parent 2e3a1ff0c6
commit f788795415
1 changed files with 8 additions and 1 deletions

View File

@ -70,10 +70,17 @@ void PluginUtility::ExecuteCommand(const Command::Ptr& commandObj, const Checkab
for (const Dictionary::Pair& kv : env) {
String name = kv.second;
String missingMacro;
Value value = MacroProcessor::ResolveMacros(name, macroResolvers, cr,
nullptr, MacroProcessor::EscapeCallback(), resolvedMacros,
&missingMacro, MacroProcessor::EscapeCallback(), resolvedMacros,
useResolvedMacros);
#ifdef I2_DEBUG
if (!missingMacro.IsEmpty())
Log(LogDebug, "PluginUtility")
<< "Macro '" << name << "' is not defined.";
#endif /* I2_DEBUG */
if (value.IsObjectType<Array>())
value = Utility::Join(value, ';');