Skip to content

Commit 8605545

Browse files
committed
fix warnings (#1182)
(cherry picked from commit 8d96cf5)
1 parent 0935c6a commit 8605545

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/Elastic.Apm.Extensions.Logging.Tests/CaptureApmErrorsTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ private static IHostBuilder CreateHostBuilder(MockPayloadSender payloadSender =
3737
.ConfigureLogging((hostingContext, logging) =>
3838
{
3939
logging.ClearProviders();
40+
#if NET5_0
41+
logging.AddSimpleConsole(o => o.IncludeScopes = true);
42+
#else
4043
logging.AddConsole(options => options.IncludeScopes = true);
44+
#endif
4145
})
4246
.UseElasticApm();
4347
}

test/Elastic.Apm.Tests/ApiTests/ConvenientApiTransactionTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
using Elastic.Apm.Helpers;
1111
using Elastic.Apm.Model;
1212
using Elastic.Apm.Tests.Extensions;
13+
using Elastic.Apm.Tests.Utilities;
1314
using FluentAssertions;
1415
using Xunit;
15-
using System.Diagnostics;
16-
using Elastic.Apm.Tests.Utilities;
1716
using Xunit.Abstractions;
1817

1918
namespace Elastic.Apm.Tests.ApiTests

0 commit comments

Comments
 (0)