include access logs in native foreground mode

This commit is contained in:
Adil Hafeez 2026-03-03 15:19:03 -08:00
parent baab4e793c
commit 2d327e6ec9
No known key found for this signature in database
GPG key ID: 9B18EF7691369645

View file

@ -274,14 +274,17 @@ def start_native(plano_config_file, env, foreground=False, with_tracing=False):
status_print(f"[dim]Running in foreground. Press Ctrl+C to stop.[/dim]")
status_print(f"[dim]Logs: {log_dir}[/dim]")
try:
# Tail both log files
import glob
access_logs = sorted(glob.glob(os.path.join(log_dir, "access_*.log")))
tail_proc = subprocess.Popen(
[
"tail",
"-f",
os.path.join(log_dir, "envoy.log"),
os.path.join(log_dir, "brightstaff.log"),
],
]
+ access_logs,
stdout=sys.stdout,
stderr=sys.stderr,
)