You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using fastapi and the traceback is enormous with a lot of stuff I don't ever see myself needing ( example : https://bpa.st/OPHPI )
I've subclassed RichHandler and Traceback to suppress the filenames but it would be nice to have an option on RichHandler and other classes that have the tracebacks_suppress option to not render the filenames of suppressed files.
Here is my solution/hack if anyone else is interested : https://bpa.st/FTK6U . Basically just copied the code from rich and added lines 69-70
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using fastapi and the traceback is enormous with a lot of stuff I don't ever see myself needing ( example : https://bpa.st/OPHPI )
I've subclassed RichHandler and Traceback to suppress the filenames but it would be nice to have an option on RichHandler and other classes that have the tracebacks_suppress option to not render the filenames of suppressed files.
Here is my solution/hack if anyone else is interested : https://bpa.st/FTK6U . Basically just copied the code from rich and added lines 69-70
Beta Was this translation helpful? Give feedback.
All reactions