Skip to content

Commit c3628ac

Browse files
(#123) Fix warnings
1 parent a5191db commit c3628ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Stravaig.Extensions.Logging.Diagnostics/TestCaptureLogger(OfTCategoryType).cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,13 @@ public bool IsEnabled(LogLevel logLevel)
4444
=> _logger.IsEnabled(logLevel);
4545

4646
/// <inheritdoc />
47+
#if NET7_0_OR_GREATER
4748
public IDisposable? BeginScope<TState>(TState state) where TState : notnull
4849
=> _logger.BeginScope(state);
50+
#else
51+
public IDisposable BeginScope<TState>(TState state)
52+
=> _logger.BeginScope(state);
53+
#endif
4954

5055
/// <summary>
5156
/// Resets the logger by discarding the captured logs.

0 commit comments

Comments
 (0)