Skip to content

Commit 5f85558

Browse files
authored
Merge pull request #597 from jwhitlock/firefox-logging
Update geckodriver log level from environment
2 parents ac9e5f0 + c319c5d commit 5f85558

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

NodeFirefox/generate_config

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
FIREFOX_VERSION=$( firefox -version | cut -d " " -f 3 )
4+
DRIVER_LOGLEVEL=${DRIVER_LOGLEVEL:-info}
45

56
cat <<_EOF
67
{
@@ -10,7 +11,14 @@ cat <<_EOF
1011
"browserName": "firefox",
1112
"maxInstances": $NODE_MAX_INSTANCES,
1213
"seleniumProtocol": "WebDriver",
13-
"applicationName": "$NODE_APPLICATION_NAME"
14+
"applicationName": "$NODE_APPLICATION_NAME",
15+
"moz:firefoxOptions":
16+
{
17+
"log":
18+
{
19+
"level": "$DRIVER_LOGLEVEL"
20+
}
21+
}
1422
}
1523
],
1624
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",

0 commit comments

Comments
 (0)