auto-sync: 2026-05-05 11:36:45

This commit is contained in:
cfdaily
2026-05-05 11:36:45 +08:00
parent adc4101d9f
commit 0f315f1dbc
+3 -2
View File
@@ -58,7 +58,8 @@ PROGRESS_SAVE_EVERY = 500
def setup_logging():
LOG_DIR.mkdir(parents=True, exist_ok=True)
ts = datetime.now().strftime("%Y%m%d_%H%M%S")
log_file = LOG_DIR / f"backfill_15min_{ts}.log"
# 日志写本地避免SMB阻塞
log_file = Path(f"/tmp/backfill_15min_{ts}.log")
logging.basicConfig(
level=logging.INFO,
@@ -68,7 +69,7 @@ def setup_logging():
logging.StreamHandler(),
],
)
return logging.getLogger(__name__)
return logging.getLogger(__name__), log_file
logger = setup_logging()