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

Display errors, notices and alerts in debug mode. #3165

Merged
merged 1 commit into from Oct 18, 2023

Conversation

demiankatz
Copy link
Member

There is a significant flaw in the debug setting in config.ini: it ONLY displays debug messages, but not alerts, notices, or errors... thus, turning on debug messages to troubleshoot fatal errors can be a puzzling experience. This PR addresses the problem by displaying ALL log messages when debug mode is turned on.

I imagine there could be debate about whether this should be made more configurable, but my argument is that for complex logging setups, users already have significant flexibility through the [Logging] section of config.ini. If they want to turn on an easy setting to see why something is broken, they should see all available information to get a more complete picture of what is happening.

This PR was inspired by VUFIND-1599, because the FOLIO ILS driver logs errors (instead of debug messages) when it encounters permission errors... and these errors were not visible to the end user in debug mode, making them hard to quickly troubleshoot.

@demiankatz demiankatz added this to the 9.1 milestone Oct 17, 2023
Copy link
Contributor

@EreMaijala EreMaijala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me!

@demiankatz demiankatz merged commit ecaded1 into vufind-org:dev Oct 18, 2023
7 checks passed
@demiankatz demiankatz deleted the better-debug-mode branch October 18, 2023 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants