fix(start.py): line-buffer stdout so journals show progress promptly
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
17248e239b
commit
459c751414
1 changed files with 4 additions and 0 deletions
4
start.py
4
start.py
|
|
@ -20,6 +20,10 @@ import threading
|
||||||
import time
|
import time
|
||||||
import pathlib
|
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
|
SCRIPT_DIR = pathlib.Path(__file__).resolve().parent
|
||||||
SECRETS_FILE = pathlib.Path.home() / ".secrets" / "bigbiggerbiggestbot"
|
SECRETS_FILE = pathlib.Path.home() / ".secrets" / "bigbiggerbiggestbot"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue