Skip to content

Commit 8b46991

Browse files
updates and code style issue fixes
1 parent ce41754 commit 8b46991

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/io/appium/java_client/remote/AppiumCommandExecutor.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import static java.lang.String.format;
2222
import static java.nio.charset.StandardCharsets.UTF_8;
2323
import static java.util.Optional.ofNullable;
24+
import static java.util.logging.Logger.getLogger;
2425
import static org.openqa.selenium.remote.DriverCommand.NEW_SESSION;
2526

2627
import com.google.common.base.Supplier;
@@ -172,7 +173,8 @@ public Result createSession(HttpClient client, Command command)
172173

173174
return result.map(result1 -> {
174175
Result toReturn = result.get();
175-
System.out.print(format("Detected dialect: %s", toReturn.getDialect()));
176+
getLogger(ProtocolHandshake.class.getName())
177+
.info(format("Detected dialect: %s", toReturn.getDialect()));
176178
return toReturn;
177179
}).orElseThrow(() -> new SessionNotCreatedException(
178180
format("Unable to create new remote session. desired capabilities = %s", desired)));
@@ -200,7 +202,7 @@ public Result createSession(HttpClient client, Command command)
200202
}
201203

202204
@Override
203-
public Response execute(Command command) throws WebDriverException, IOException {
205+
public Response execute(Command command) throws WebDriverException {
204206
if (DriverCommand.NEW_SESSION.equals(command.getName())) {
205207
serviceOptional.ifPresent(driverService -> {
206208
try {

0 commit comments

Comments
 (0)