feat(P3): 5개 서비스 비즈니스 이벤트 logger.info 보강

This commit is contained in:
2026-05-28 22:38:43 +09:00
parent c5c260aefc
commit 2bfbd1dd93
7 changed files with 23 additions and 1 deletions

View File

@@ -4,12 +4,15 @@ from __future__ import annotations
import datetime as dt
import json
import logging
import os
import sqlite3
from typing import Optional
from fastapi import APIRouter, HTTPException
logger = logging.getLogger(__name__)
from . import schemas
from .registry import NODE_REGISTRY, GATE_REGISTRY
from .. import webai_cache
@@ -246,6 +249,7 @@ def post_run(body: schemas.RunRequest):
telegram_payload=schemas.TelegramPayload(**payload),
warnings=result.warnings,
)
logger.info(f"Screener 완료: mode={body.mode}, asof={asof.isoformat()}, survivors={result.survivors_count}, top_n={top_n}")
# SP-A2 — preview 모드 결과 캐시 저장.
if body.mode == "preview":
webai_cache.cache_set_screener(body.mode, body.top_n, body.weights, response)