Skip to content

Commit

Permalink
Add some logs to debug issue 386
Browse files Browse the repository at this point in the history
  • Loading branch information
rom1v committed Jan 6, 2019
1 parent 0e019f8 commit 5518786
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ static process_t execute_server(const char *serial,
Uint16 max_size, Uint32 bit_rate,
SDL_bool tunnel_forward, const char *crop,
SDL_bool send_frame_meta) {
LOGD("tunnel_forward=%d\n", (int) tunnel_forward);
char max_size_string[6];
char bit_rate_string[11];
sprintf(max_size_string, "%"PRIu16, max_size);
Expand Down
3 changes: 3 additions & 0 deletions server/src/main/java/com/genymobile/scrcpy/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ private static Options createOptions(String... args) {
}
// use "adb forward" instead of "adb tunnel"? (so the server must listen)
boolean tunnelForward = Boolean.parseBoolean(args[2]);
Ln.d("tunnelForward = " + tunnelForward);
options.setTunnelForward(tunnelForward);

if (args.length < 4) {
Expand Down Expand Up @@ -105,6 +106,8 @@ public void uncaughtException(Thread t, Throwable e) {
}
});

Ln.d("args: " + Arrays.toString(args));

Options options = createOptions(args);
scrcpy(options);
}
Expand Down

0 comments on commit 5518786

Please sign in to comment.