bitpanda-labs / loggo2

Open source Python logging utilities
MIT License
4 stars 12 forks source link

Remove loggo frames from traceback #17

Closed interrogator closed 5 years ago

interrogator commented 6 years ago

Some of us don't like the fact that loggo accounts for about half the traceback when there is an error. Loggo itself is fairly stable now, so pruning the traceback object to remove the Loggo frames would help a bit.

interrogator commented 6 years ago

This should wait until about 2 months pass without a single Loggo failure.

interrogator commented 6 years ago

@oskyk i know this bugs you the most ... any chance you wanna try playing with the tb object to remove the loggo frames?

https://www.programcreek.com/python/example/775/traceback.extract_tb

interrogator commented 5 years ago

Revisited this, no satisfactory answer for Python 3, and most people cautioning against. See:

https://stackoverflow.com/questions/44813333/how-can-i-elide-a-function-wrapper-from-the-traceback-in-python-3

interrogator commented 5 years ago

Closing because this is an evil idea and the complaining @oskyk hasn't gotten involved