Skip to content

Commit 7986cea

Browse files
Remove excessive logs in cleanup
1 parent dc54ac2 commit 7986cea

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/BenchmarkDotNet/Running/BenchmarkRunnerClean.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,6 @@ private static void Cleanup(ILogger logger, HashSet<string> artifactsToCleanup)
644644
{
645645
foreach (string path in artifactsToCleanup)
646646
{
647-
logger.WriteLineInfo($"Trying to delete '{path}'");
648647
try
649648
{
650649
if (Directory.Exists(path))
@@ -655,11 +654,9 @@ private static void Cleanup(ILogger logger, HashSet<string> artifactsToCleanup)
655654
{
656655
File.Delete(path);
657656
}
658-
logger.WriteLineInfo($"Successfully deleted '{path}'");
659657
}
660-
catch (Exception e)
658+
catch (Exception)
661659
{
662-
logger.WriteLineInfo($"Failed to delete '{path}' because of the following exception: {e}");
663660
// sth is locking our auto-generated files
664661
// there is very little we can do about it
665662
}

0 commit comments

Comments
 (0)