Skip to content

Commit a9f0867

Browse files
committed
C#: Address review comments
1 parent dee4ddb commit a9f0867

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

csharp/autobuilder/Semmle.Autobuild/Autobuilder.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,12 @@ public int AttemptBuild()
216216

217217
void startCallback(string s, bool silent)
218218
{
219-
if (!silent) Log(Severity.Info, $"\nRunning {s}");
219+
Log(silent ? Severity.Debug : Severity.Info, $"\nRunning {s}");
220220
}
221221

222222
void exitCallback(int ret, string msg, bool silent)
223223
{
224-
if (!silent)
225-
Log(Severity.Info, $"Exit code {ret}{(string.IsNullOrEmpty(msg) ? "" : $": {msg}")}");
224+
Log(silent ? Severity.Debug : Severity.Info, $"Exit code {ret}{(string.IsNullOrEmpty(msg) ? "" : $": {msg}")}");
226225
}
227226

228227
return script.Run(Actions, startCallback, exitCallback);

0 commit comments

Comments
 (0)