From da88ee1b95b7a595403e92b14341ae0a67e7895d Mon Sep 17 00:00:00 2001 From: Craig Fowler Date: Fri, 2 Apr 2021 13:46:47 +0100 Subject: [PATCH] Trivial: Make running tests less noisy --- .../Elsa.Testing.Shared/Helpers/ElsaHostBuilderBuilder.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/shared/Elsa.Testing.Shared/Helpers/ElsaHostBuilderBuilder.cs b/test/shared/Elsa.Testing.Shared/Helpers/ElsaHostBuilderBuilder.cs index ba022f609..808182681 100644 --- a/test/shared/Elsa.Testing.Shared/Helpers/ElsaHostBuilderBuilder.cs +++ b/test/shared/Elsa.Testing.Shared/Helpers/ElsaHostBuilderBuilder.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; namespace Elsa.Testing.Shared.Helpers { @@ -19,7 +20,9 @@ namespace Elsa.Testing.Shared.Helpers /// the host builder as it is created. /// /// The services callbacks - public IList> ServiceCallbacks { get; } = new List>(); + public IList> ServiceCallbacks { get; } = new List> { + services => services.AddLogging(l => l.SetMinimumLevel(LogLevel.Warning)), + }; /// /// Gets a collection of the callbacks to be executed upon the of