mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +02:00
include access logs in native foreground mode
This commit is contained in:
parent
baab4e793c
commit
2d327e6ec9
1 changed files with 5 additions and 2 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue