Skip to content

fix: default logcat broadcast to the connected Appium server - #2484

Open
Ganesh2325 wants to merge 1 commit into
appium:masterfrom
Ganesh2325:cursor/logcat-broadcast-server-url-2d6f
Open

Ganesh2325 wants to merge 1 commit into
appium:masterfrom
Ganesh2325:cursor/logcat-broadcast-server-url-2d6f

Conversation

@Ganesh2325

@Ganesh2325 Ganesh2325 commented Oct 29, 2026 •

Copy link
Copy Markdown

Fixes #1352

Change list

  • The no-arg startLogcatBroadcast() now uses the Appium server URL the driver is connected to (from the command executor) instead of the hardcoded 127.0.0.1:4723.
  • https / wss servers map to wss; a missing port is left off the socket URI.
  • The HTTP base path (e.g. /wd/hub) is intentionally not appended, because the server registers /ws/session/<id>/appium/device/logcat at the root.
  • The explicit host and host/port overloads are unchanged.

Types of changes

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Details

Added ListensToLogcatMessagesTest (10 unit tests using a scripted HTTP client, no device needed).
./gradlew test checkstyleMain checkstyleTest javadoc passes.

This change was AI-assisted; I reviewed and tested it myself.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: Ganesh2325 / name: Ganesh (c9dd42c)

@mykola-mokhnach

Copy link
Copy Markdown
Contributor

@Ganesh2325 Could you please sign CLA?

startLogcatBroadcast() hardcoded 127.0.0.1:4723, so a remote server or
another port never reached the logcat socket. The no-arg method now uses
the command executor URL. https becomes wss, and an HTTP base path such
as /wd/hub is not added because Appium serves the socket at the server
root. The host and host/port overloads stay compatible.
@cursor
cursor Bot force-pushed the cursor/logcat-broadcast-server-url-2d6f branch from d32ffa7 to c9dd42c Compare October 30, 2026 09:15
@Ganesh2325

Copy link
Copy Markdown
Author

@mykola-mokhnach Thanks! I've signed the CLA. I'm also updating the commit authorship so the check picks it up; it should go green shortly.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ListensToLogcatMessages.class function startLogcatBroadcast improvement

2 participants