Skip to content

Commit

Permalink
unbuffered stdout so that output show up when not run in pseudo-tty
Browse files Browse the repository at this point in the history
  • Loading branch information
TShapinsky committed Apr 12, 2023
1 parent 53748d5 commit ff5321d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alfalfa_bacnet_bridge/alfalfa_watchdog.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def main_loop(host: str, alfalfa_site: str, command: str):
child_process.kill()
elif child_process != None:
logger.info(f"Process '{child_process.pid}' died, restarting process")
child_process = Popen(["python", command, host, site_id])
child_process = Popen(["python", "-u", command, host, site_id])
logger.info(f"Spawned new child process: '{child_process.pid}'")
old_site_id = site_id

Expand Down

0 comments on commit ff5321d

Please sign in to comment.