Skip to content

Commit f5989f6

Browse files
committed
[dotnet] Avoid changing state of variable.
LogPath takes precedence anyway.
1 parent 1faee93 commit f5989f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dotnet/src/webdriver/Firefox/FirefoxDriverService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,9 @@ protected override void OnDriverProcessStarting(DriverProcessStartingEventArgs e
213213
// Initialize the log writer
214214
logWriter = new StreamWriter(this.LogPath, append: true) { AutoFlush = true };
215215

216-
// LogToConsole and LogPath are mutually exclusive. LogPath takes precedence.
216+
// LogToConsole and LogPath are mutually exclusive, therefore we redirect log output.
217217
if (this.LogToConsole)
218218
{
219-
this.LogToConsole = false;
220219
eventArgs.DriverServiceProcessStartInfo.RedirectStandardOutput = true;
221220
eventArgs.DriverServiceProcessStartInfo.RedirectStandardError = true;
222221
}

0 commit comments

Comments
 (0)