auto-sync: 2026-05-05 11:36:45
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user