File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ protected virtual bool IsInitialized
236236                } 
237237                catch  ( Exception  ex )  when  ( ex  is  HttpRequestException  ||  ex  is  TaskCanceledException ) 
238238                { 
239-                     // do  nothing: the  exception is expected, meaning driver service is not initialized 
239+                     // Do  nothing. The  exception is expected, meaning driver service is not initialized.  
240240                } 
241241
242242                return  isInitialized ; 
Original file line number Diff line number Diff line change 1717// </copyright> 
1818
1919using  OpenQA . Selenium . Internal ; 
20- using  OpenQA . Selenium . Internal . Logging ; 
2120using  System ; 
2221using  System . IO ; 
2322using  System . Net ; 
@@ -34,8 +33,6 @@ public sealed class SafariDriverService : DriverService
3433    { 
3534        private  const  string  DefaultSafariDriverServiceExecutableName  =  "safaridriver" ; 
3635
37-         private  readonly  static   ILogger  logger  =  Log . GetLogger < SafariDriverService > ( ) ; 
38- 
3936        /// <summary> 
4037        /// Initializes a new instance of the <see cref="SafariDriverService"/> class. 
4138        /// </summary> 
@@ -130,10 +127,7 @@ protected override bool IsInitialized
130127                        // check. 
131128                        catch  ( Exception  ex )  when  ( ex  is  HttpRequestException  ||  ex  is  TaskCanceledException ) 
132129                        { 
133-                             if  ( logger . IsEnabled ( LogEventLevel . Trace ) ) 
134-                             { 
135-                                 logger . Trace ( ex . ToString ( ) ) ; 
136-                             } 
130+                             // Do nothing. The exception is expected, meaning driver service is not initialized. 
137131                        } 
138132                    } 
139133                } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments