diff --git a/dotnet/src/webdriver/DriverService.cs b/dotnet/src/webdriver/DriverService.cs index a061bee8594cb..94a100e4997e1 100644 --- a/dotnet/src/webdriver/DriverService.cs +++ b/dotnet/src/webdriver/DriverService.cs @@ -16,7 +16,6 @@ // limitations under the License. // -using OpenQA.Selenium.Internal.Logging; using OpenQA.Selenium.Remote; using System; using System.Diagnostics; @@ -42,7 +41,6 @@ public abstract class DriverService : ICommandServer private bool isDisposed; private Process driverServiceProcess; private TimeSpan initializationTimeout = TimeSpan.FromSeconds(20); - private readonly static ILogger logger = Log.GetLogger(); /// /// Initializes a new instance of the class. @@ -238,10 +236,7 @@ protected virtual bool IsInitialized } catch (Exception ex) when (ex is HttpRequestException || ex is TaskCanceledException) { - if (logger.IsEnabled(LogEventLevel.Trace)) - { - logger.Trace(ex.ToString()); - } + // do nothing: the exception is expected, meaning driver service is not initialized } return isInitialized;