Skip to content

Commit 78502c6

Browse files
Update app/models/config.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 302825c commit 78502c6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/models/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ def from_yaml(cls, yaml_file: str = "config.yaml"):
9393
raise
9494
except ValidationError as e:
9595
logger.error("Pydantic配置验证失败: %s", e)
96+
for error in e.errors():
97+
logger.error(" %s: %s", error['loc'], error['msg'])
9698
raise
9799

98100
else:

0 commit comments

Comments
 (0)