Skip to content

Commit 5fd4085

Browse files
committed
Remove unnecessary changes to logging
1 parent edd0fdb commit 5fd4085

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

dotnet/src/webdriver/Internal/Logging/LogContext.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ public LogContext(LogEventLevel level, ILogContext? parentLogContext, Concurrent
5858
}
5959
}
6060

61-
public ILogContext CreateContext() => CreateContext(_level);
61+
public ILogContext CreateContext()
62+
{
63+
return CreateContext(_level);
64+
}
6265

6366
public ILogContext CreateContext(LogEventLevel minimumLevel)
6467
{
@@ -76,7 +79,10 @@ public ILogContext CreateContext(LogEventLevel minimumLevel)
7679
return context;
7780
}
7881

79-
public ILogger GetLogger<T>() => GetLogger(typeof(T));
82+
public ILogger GetLogger<T>()
83+
{
84+
return GetLogger(typeof(T));
85+
}
8086

8187
public ILogger GetLogger(Type type)
8288
{

dotnet/src/webdriver/Internal/Logging/LogEvent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ public sealed class LogEvent
3535
/// <param name="timestamp">The timestamp of the log event.</param>
3636
/// <param name="level">The level of the log event.</param>
3737
/// <param name="message">The message of the log event.</param>
38-
/// <exception cref="ArgumentNullException">If <paramref name="issuedBy"/> or <paramref name="message"/> are <see langword="null"/>.</exception>
38+
/// <exception cref="ArgumentNullException">If <paramref name="issuedBy"/> is <see langword="null"/>.</exception>
3939
public LogEvent(Type issuedBy, DateTimeOffset timestamp, LogEventLevel level, string message)
4040
{
4141
IssuedBy = issuedBy ?? throw new ArgumentNullException(nameof(issuedBy));
4242
Timestamp = timestamp;
4343
Level = level;
44-
Message = message ?? throw new ArgumentNullException(nameof(message));
44+
Message = message;
4545
}
4646

4747
/// <summary>

0 commit comments

Comments
 (0)