Skip to content

Commit

Permalink
adding debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
craigpfeifer committed Dec 15, 2024
1 parent edb8148 commit a4eecb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ def test_serve():

def run_server():
nonlocal process

stdout, stderr = ""
try:
print (f"Running command {run_command}")
process = subprocess.Popen(run_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
Expand All @@ -195,6 +197,9 @@ def run_server():
except Exception as e:
print (e)
raise e
finally:
print (f"stdout : {stdout}")
print(f"stderr : {stderr}")

server_thread = threading.Thread(target=run_server)
server_thread.start()
Expand Down

0 comments on commit a4eecb6

Please sign in to comment.