logging.StreamHandler가 기본적으로 stderr를 사용하기 때문에 pm2에서 error.log에 기록됨
StreamHandler의 stream을 명시적으로 sys.stdout으로 설정해야함.
logging.handlers — Logging handlers

'Tips' 카테고리의 다른 글
| python의 변수와 객체 참조 (0) | 2025.08.23 |
|---|---|
| MySQL GENERATED 칼럼 사용법 (3) | 2025.08.16 |
| FastAPI 실행 및 문서 접근 가이드 (0) | 2025.06.21 |
| [Rabbitmq] ERROR: could not bind to distribution port (0) | 2025.06.06 |
| pm2로 python 데몬화 (0) | 2025.05.31 |