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

Add traceback info to logger messages within exceptions #394

Merged

Conversation

mjsir911
Copy link
Contributor

@mjsir911 mjsir911 commented Jan 5, 2024

Hi,

We were running into an old issue #294 that got resolved back in 1.3.1 #297, but it took us a bit to track down because we were getting them through email and weren't seeing any traceback info.

This PR enables traceback info to any logging calls that are might include traceback info / are inside exceptions.

Additionally it might be possible to remove the f"{e}" from these logging calls since it's now included in the traceback / exception info that shows up in the logs, but I haven't done that since y'all do that elsewhere too.

@peppelinux
Copy link
Member

Hey @mjsir911 I have read and I can say that I approve this contribution to djangosaml2 that improve the debug information when some error might be critical for a production system

I look forward for the resolution of the issues we have in the unit tests, you can see how the CI fails.
When these issues will be fixed I'll ask you to increase the version of djangosaml2, then we'll be able to merge and tag a new release

@mjsir911 mjsir911 force-pushed the msirabella/logging_tracebacks branch from 5268ea1 to 95414a4 Compare January 10, 2024 04:50
@mjsir911
Copy link
Contributor Author

@peppelinux fixed the tests

@peppelinux
Copy link
Member

ok, let's then do this release

can you please set 1.9.1 here? https://github.com/IdentityPython/djangosaml2/blob/master/setup.py#L30

@mjsir911 mjsir911 force-pushed the msirabella/logging_tracebacks branch from 95414a4 to e8c97cc Compare January 22, 2024 19:54
@mjsir911
Copy link
Contributor Author

done @peppelinux

@peppelinux peppelinux merged commit 169fc48 into IdentityPython:master Jan 23, 2024
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

Successfully merging this pull request may close these issues.

2 participants