Skip to content

Commit ff5321d

Browse files
committed
unbuffered stdout so that output show up when not run in pseudo-tty
1 parent 53748d5 commit ff5321d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alfalfa_bacnet_bridge/alfalfa_watchdog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async def main_loop(host: str, alfalfa_site: str, command: str):
6666
child_process.kill()
6767
elif child_process != None:
6868
logger.info(f"Process '{child_process.pid}' died, restarting process")
69-
child_process = Popen(["python", command, host, site_id])
69+
child_process = Popen(["python", "-u", command, host, site_id])
7070
logger.info(f"Spawned new child process: '{child_process.pid}'")
7171
old_site_id = site_id
7272

0 commit comments

Comments
 (0)