From 459c751414a53eb7a3ef9f56100741df985509da Mon Sep 17 00:00:00 2001 From: Danny Date: Sun, 10 May 2026 13:42:51 +0200 Subject: [PATCH] fix(start.py): line-buffer stdout so journals show progress promptly Co-Authored-By: Claude Opus 4.7 (1M context) --- start.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/start.py b/start.py index 2ed0ca4..6471e56 100644 --- a/start.py +++ b/start.py @@ -20,6 +20,10 @@ import threading import time import pathlib +# Flush prints line-by-line so the tunnel URL etc. show up promptly in +# systemd journals (stdout is block-buffered when not connected to a TTY). +sys.stdout.reconfigure(line_buffering=True) + SCRIPT_DIR = pathlib.Path(__file__).resolve().parent SECRETS_FILE = pathlib.Path.home() / ".secrets" / "bigbiggerbiggestbot"