Skip to content

Commit 669a493

Browse files
committed
[java] fix geckodriver log truncation logic
1 parent b571cd7 commit 669a493

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

java/src/org/openqa/selenium/firefox/GeckoDriverService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ protected void loadSystemProperties() {
261261
}
262262
}
263263
if (logTruncate == null) {
264-
logTruncate = Boolean.getBoolean(GECKO_DRIVER_LOG_LEVEL_PROPERTY);
264+
logTruncate = !Boolean.getBoolean(GECKO_DRIVER_LOG_NO_TRUNCATE);
265265
}
266266
if (profileRoot == null) {
267267
String profileRootFromProperty = System.getProperty(GECKO_DRIVER_PROFILE_ROOT);
@@ -288,7 +288,7 @@ protected List<String> createArgs() {
288288
args.add("--log");
289289
args.add(logLevel.toString());
290290
}
291-
if (logTruncate != null && logTruncate.equals(Boolean.TRUE)) {
291+
if (logTruncate != null && logTruncate.equals(Boolean.FALSE)) {
292292
args.add("--log-no-truncate");
293293
}
294294
if (profileRoot != null) {

0 commit comments

Comments
 (0)