a
This commit is contained in:
parent
975751a53b
commit
86c0a8150a
|
|
@ -15,6 +15,8 @@ sys.path.insert(0, str(project_root / 'backend'))
|
|||
from database.models import Trade
|
||||
|
||||
router = APIRouter()
|
||||
# 在模块级别创建logger(与其他路由文件保持一致)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def get_date_range(period: Optional[str] = None):
|
||||
|
|
@ -61,7 +63,6 @@ async def get_trades(
|
|||
"""
|
||||
|
||||
##记录日志
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.info(f"get_trades: start_date={start_date}, end_date={end_date}, period={period}, symbol={symbol}, status={status}, limit={limit}")
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user