fix(logger): improve behavior with exc_info=True to prevent errors
#22863
| Job | Run time |
|---|---|
| 5s | |
| 5s |
exc_info=True to prevent errors
#22863
| Job | Run time |
|---|---|
| 5s | |
| 5s |