public static void LogVariables(this VariableDictionary variables) { if (variables.GetFlag(SpecialVariables.PrintVariables)) { Log.Verbose("The following variables are available:" + Environment.NewLine + variables.ToString(IsPrintable, true)); } if (variables.GetFlag(SpecialVariables.PrintEvaluatedVariables)) { Log.Verbose("The following evaluated variables are available:" + Environment.NewLine + variables.ToString(IsPrintable, false)); } }
public static void LogVariables(this VariableDictionary variables) { if (variables.GetFlag(SpecialVariables.PrintVariables)) { Log.Warn($"{SpecialVariables.PrintVariables} is enabled. This should only be used for debugging problems with variables, and then disabled again for normal deployments."); Log.Verbose("The following variables are available:" + Environment.NewLine + variables.ToString(IsPrintable, true)); } if (variables.GetFlag(SpecialVariables.PrintEvaluatedVariables)) { Log.Warn($"{SpecialVariables.PrintEvaluatedVariables} is enabled. This should only be used for debugging problems with variables, and then disabled again for normal deployments."); Log.Verbose("The following evaluated variables are available:" + Environment.NewLine + variables.ToString(IsPrintable, false)); } }