Skip to content

Commit

Permalink
Logging and printing separately.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Feb 25, 2024
1 parent d91c172 commit eb81bc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _pydevd_bundle/pydevd_comm.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,10 @@ def start_server(port):
try:
s.listen(1)
# Let the user know it's halted waiting for the connection.
pydev_log.critical("pydevd: waiting for connection at: %s:%s\n", *s.getsockname())
host, port = s.getsockname()
msg = f"pydevd: waiting for connection at: {host}:{port}"
print(msg, file=sys.stderr)
pydev_log.info(msg)

new_socket, _addr = s.accept()
pydev_log.info("Connection accepted")
Expand Down

0 comments on commit eb81bc7

Please sign in to comment.