<#1695 Feat: Allow disabling rich tracebacks via e...
# flyte-github
a
#1695 Feat: Allow disabling rich tracebacks via env var Pull request opened by fg91 TL;DR In
flytekit==1.6.0
rich tracebacks were introduced (#1582). Before, exceptions were shown like this:

Screenshot 2023-06-15 at 15 37 04ā–¾

After, they are shown like this:

Screenshot 2023-06-15 at 15 36 44ā–¾

This happens as long as
import flytekit
is called somewhere in the imported code base, also when not directly working with flyte. * * * Style ultimately is a question of taste but several of our engineers have complained about this change:
When/Why did the stacktrace get so ugly colorful. It takes up way too much space and pycharm cannot create crosslinks to the files anymore for me šŸ™ˆ And long lines are truncated
I feel the same, does not help me
Can we configure this
I wanted to complain about this too šŸ˜„
The tracebacks contain way more (white space) characters, meaning I can paste a lot less of them into chat gpt
Because of this, in this PR I propose to introduce an environment variable which disables rich tracebacks. I chose a naming inspired by
"FLYTE_SDK_LOGGING_LEVEL"
or
"FLYTE_SDK_LOGGING_FORMAT"
in
flytekit/loggers.py
. Would this change be be acceptable to you @cosmicBboy @freezing-airport-6809 @eapolinario ? Type ☐ Bug Fix ā˜‘ļøŽ Feature ☐ Plugin Are all requirements met? ā˜‘ļøŽ Code completed ā˜‘ļøŽ Smoke tested ☐ Unit tests added ☐ Code documentation added ☐ Any pending items have an associated Issue Complete description NA Tracking Issue NA Follow-up issue NA flyteorg/flytekit āœ… All checks have passed 30/30 successful checks