keithproject commited on
Commit
d9f6df7
·
1 Parent(s): 1e6332d

fix: drop per-program tail wrapper — global tail already streams logs

Browse files

mem0-api output appeared twice in HF logs (inner tail + entrypoint's
global tail -F). Plain uvicorn command is enough.

Files changed (1) hide show
  1. supervisord.conf +2 -5
supervisord.conf CHANGED
@@ -24,15 +24,12 @@ stderr_logfile_backups=5
24
  environment=PGDATA="/opt/data/pgdata",PGPORT="5432"
25
 
26
  [program:mem0-api]
27
- ; tail -F the file logs to inherited stdout so tracebacks show in HF logs
28
- ; (supervisord cannot reopen /dev/fd/1 itself -> EACCES on all dispatchers)
29
- command=/bin/sh -c "tail -q -F /var/log/supervisor/mem0-api.log /var/log/supervisor/mem0-api.err.log & exec /usr/local/bin/uvicorn main:app --host 127.0.0.1 --port 8000 --workers 1"
30
  directory=/opt/mem0/api
31
  user=mem0
32
  autostart=true
33
  autorestart=true
34
- stopasgroup=true
35
- killasgroup=true
36
  startsecs=15
37
  startretries=3
38
  stdout_logfile=/var/log/supervisor/mem0-api.log
 
24
  environment=PGDATA="/opt/data/pgdata",PGPORT="5432"
25
 
26
  [program:mem0-api]
27
+ ; file logs are streamed to container stdout by entrypoint's tail -F
28
+ command=/usr/local/bin/uvicorn main:app --host 127.0.0.1 --port 8000 --workers 1
 
29
  directory=/opt/mem0/api
30
  user=mem0
31
  autostart=true
32
  autorestart=true
 
 
33
  startsecs=15
34
  startretries=3
35
  stdout_logfile=/var/log/supervisor/mem0-api.log