Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] command line flag to capture the values of locals in the printed traceback #673

Open
JasonGross opened this issue Oct 9, 2024 · 1 comment

Comments

@JasonGross
Copy link
Contributor

JasonGross commented Oct 9, 2024

In

rich_tb = Traceback.from_exception(
exc_type=exc_type,
exc_value=exc_value,
traceback=exc_traceback,
suppress=[click, asyncio, tenacity, sys.modules[PKG_NAME]],
show_locals=False,
width=CONSOLE_DISPLAY_WIDTH,
)

there should be a command line flag to allow changing
show_locals=False,

to show_locals=True.

This would make debugging significantly easier.

@jjallaire-aisi
Copy link
Collaborator

Interestingly, we originally had show_locals=True but then multiple people noticed that it was possible for this to leak API keys into the logs. We will add an option to manually re-enble this though as I agree it's very good for debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants