Skip to content

Commit bc734a1

Browse files
Update dotnet/src/webdriver/Chromium/ChromiumDriverService.cs
Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
1 parent 5b7822e commit bc734a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dotnet/src/webdriver/Chromium/ChromiumDriverService.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ protected override string CommandLineArguments
161161

162162
if (this.LogLevel != ChromiumDriverLogLevel.Default)
163163
{
164-
argsBuilder.Append(string.Format(CultureInfo.InvariantCulture, " --log-level={0}", this.LogLevel.ToString().ToUpperInvariant()));
164+
if (Enum.IsDefined(typeof(ChromiumDriverLogLevel), this.LogLevel))
165+
{
166+
argsBuilder.Append($" --log-level={this.LogLevel.ToString().ToUpperInvariant()}");
167+
}
165168
}
166169

167170

0 commit comments

Comments
 (0)