Skip to content

Commit

Permalink
#4355 add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 13, 2024
1 parent 4ead552 commit 5852c2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xpra/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2495,6 +2495,10 @@ def handshake_complete(*_args) -> None:
attach_args.append(arg)
if WIN32 and not os.path.exists(abs_script_file) and not abs_script_file.lower().endswith(".exe"):
abs_script_file += ".exe"
if is_debug_enabled("client"):
log = Logger("client")
log.info(f"reconnecting to {params} using script file {abs_script_file!r} and args={attach_args}")
log.info(f" derived from {script_file!r} and {cmdline!r}")
try:
os.execv(abs_script_file, attach_args)
except FileNotFoundError:
Expand Down

0 comments on commit 5852c2a

Please sign in to comment.