C#: Address review comments

This commit is contained in:
Tom Hvitved
2019-11-14 11:00:19 +01:00
parent dee4ddbb5b
commit a9f08671ca

View File

@@ -216,13 +216,12 @@ namespace Semmle.Autobuild
void startCallback(string s, bool silent)
{
if (!silent) Log(Severity.Info, $"\nRunning {s}");
Log(silent ? Severity.Debug : Severity.Info, $"\nRunning {s}");
}
void exitCallback(int ret, string msg, bool silent)
{
if (!silent)
Log(Severity.Info, $"Exit code {ret}{(string.IsNullOrEmpty(msg) ? "" : $": {msg}")}");
Log(silent ? Severity.Debug : Severity.Info, $"Exit code {ret}{(string.IsNullOrEmpty(msg) ? "" : $": {msg}")}");
}
return script.Run(Actions, startCallback, exitCallback);