mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(shared-kernel): ♻ suppress acceptable warning
This commit is contained in:
parent
bf74ca66b1
commit
240d38729d
1 changed files with 2 additions and 0 deletions
|
|
@ -29,7 +29,9 @@ public static async Task<int> TryRunWithLoggingAsync(this IHost host, Func<Task>
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue