From 240d38729d5614b1d336928f1c815c3af0e96a24 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 12 Sep 2020 15:36:49 -0500 Subject: [PATCH] =?UTF-8?q?refactor(shared-kernel):=20=E2=99=BB=20suppress?= =?UTF-8?q?=20acceptable=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs b/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs index d50e5f60c..c110be272 100644 --- a/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs +++ b/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs @@ -29,7 +29,9 @@ public static async Task TryRunWithLoggingAsync(this IHost host, Func await host.RunAsync(); return 0; } +#pragma warning disable CA1031 // Do not catch general exception types catch (Exception ex) +#pragma warning restore CA1031 // Do not catch general exception types { Log.Fatal(ex, "Host terminated unexpectedly"); return 1;