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

Print more diagnostic information on a DB connection failure #2702

Merged

Conversation

marktriggs
Copy link
Contributor

Sometimes the real content of a MySQL connection failure is several wrapped exceptions deep. For example, socket-level errors like Connection Refused/Reset and SSL version errors report a fairly bland "Communications link failure", without giving any real clues about the problem.

This commit walks the nested exceptions on a DB connection failure and logs them all out.

Sometimes the real content of a MySQL connection failure is several
wrapped exceptions deep.  For example, socket-level errors like
Connection Refused/Reset and SSL version errors report a fairly bland
"Communications link failure", without giving any real clues about the
problem.

This commit walks the nested exceptions on a DB connection failure and
logs them all out.
@quoideneuf quoideneuf merged commit 9b876e7 into archivesspace:master May 20, 2022
@cdibella cdibella added the community code contributed by community members not on or contracted by the ArchivesSpace program team label Aug 10, 2022
@cdibella cdibella added this to the 3.3.0 milestone Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community code contributed by community members not on or contracted by the ArchivesSpace program team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants