Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
est
on Nov 30, 2020
|
parent
|
context
|
favorite
| on:
Add variables to Python traceback
I wonder what would happen if extracting value from a 2GB JSON "variable" went wrong....
bostonsre
on Nov 30, 2020
[–]
Yea, seems like a neat library but I'm not sure if it would be a good idea to turn it on for all stack traces globally. Could see issues like the one you mentioned and others like variables that are secrets that shouldn't be logged.
bostonsre
on Nov 30, 2020
|
parent
[–]
Or.. I guess for your example you can set a max string length.
max_value_str_len max length of each variable string, -1 to disable, default=1000
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: