diff --git a/app_streamlit.py b/app_streamlit.py index afb4a62..2c8ffb0 100644 --- a/app_streamlit.py +++ b/app_streamlit.py @@ -1,7 +1,9 @@ import sys import os -sys.stdout.reconfigure(line_buffering=True) +sys.stdout.reconfigure(line_buffering=True, encoding="utf-8") +sys.stderr.reconfigure(line_buffering=True, encoding="utf-8") os.environ["PYTHONUNBUFFERED"] = "1" +os.environ["PYTHONIOENCODING"] = "utf-8" import time import requests @@ -746,9 +748,9 @@ def _daily_report_loop(): today_str = now_kst.strftime("%Y-%m-%d") if _last_report_date is None: _last_report_date = today_str - print(f"[일일리포트] 스레드 기동 — 다음 자정({today_str} 24:00 KST) 까지 대기") + print(f"[일일리포트] 스레드 기동 -- 다음 자정({today_str} 24:00 KST) 까지 대기") elif _last_report_date != today_str: - print(f"[일일리포트] 자정 통과 감지 → 발송 ({today_str})") + print(f"[일일리포트] 자정 통과 감지 -> 발송 ({today_str})") with _alert_lock: symbol = _alert_symbol send_daily_report(symbol)