Commit d071440
Log prompt validation errors without unnecessary traceback
When a prompt is called without a required argument, the ValueError
is an expected validation failure. Previously it was logged with
logger.exception() which includes a full traceback, cluttering
server logs. Now ValueError is caught separately and logged with
logger.warning() (message only), while truly unexpected exceptions
still get the full traceback via logger.exception().
Fixes #33421 parent 57394b0 commit d071440
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1298 | 1298 | | |
1299 | 1299 | | |
1300 | 1300 | | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
1301 | 1307 | | |
1302 | 1308 | | |
1303 | 1309 | | |
| |||
0 commit comments