From e170684208103ca5ba4212ad8dc7c2aad5cf02d4 Mon Sep 17 00:00:00 2001 From: Andrey Akinshin Date: Thu, 19 Oct 2023 18:18:03 +0200 Subject: [PATCH] Adjust 'Failed to set up high priority' message https://github.com/dotnet/BenchmarkDotNet/issues/2436#issuecomment-1768620186 --- src/BenchmarkDotNet/Extensions/ProcessExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BenchmarkDotNet/Extensions/ProcessExtensions.cs b/src/BenchmarkDotNet/Extensions/ProcessExtensions.cs index 607e8c33fb..912babeb39 100644 --- a/src/BenchmarkDotNet/Extensions/ProcessExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/ProcessExtensions.cs @@ -32,7 +32,7 @@ public static void EnsureHighPriority(this Process process, ILogger logger) } catch (Exception ex) { - logger.WriteLineError($"Failed to set up high priority. Make sure you have the right permissions. Message: {ex.Message}"); + logger.WriteLineInfo($"// Failed to set up high priority ({ex.Message}). In order to run benchmarks with high priority, make sure you have the right permissions."); } }