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

[Core: Module] Make debugging more verbose #4162

Merged
merged 4 commits into from
Dec 18, 2018
Merged

[Core: Module] Make debugging more verbose #4162

merged 4 commits into from
Dec 18, 2018

Conversation

johnsaigle
Copy link
Contributor

Brief summary of changes

While working on #3881 I kept running into a problem where I would have a bug but all the error log would display was something like

PHP Fatal error:  Uncaught NotFound: media in /var/www/loris/php/libraries/Module.class.inc:81

and a generic stack trace. As a result normal PHP errors got swallowed up by the NotFound exception making it very hard to determine what was actually going wrong.

This change logs the entire path that the Module class tries to resolve and also explains what's happening behind the scenes.

@johnsaigle johnsaigle added Category: Feature PR or issue that aims to introduce a new feature [branch] major labels Nov 28, 2018
@johnsaigle johnsaigle added the State: Discussion required PR or issue that requires the resolution of a discussion with the relevant parties to proceed label Nov 29, 2018
@davidblader davidblader removed Release: Add to release notes PR whose changes should be highlighted in the release notes labels Dec 7, 2018
@johnsaigle johnsaigle added State: Needs work PR awaiting additional work by the author to proceed and removed State: Discussion required PR or issue that requires the resolution of a discussion with the relevant parties to proceed labels Dec 12, 2018
@johnsaigle johnsaigle removed the State: Needs work PR awaiting additional work by the author to proceed label Dec 12, 2018
@driusan driusan merged commit 43a74eb into aces:major Dec 18, 2018
@ridz1208 ridz1208 modified the milestones: 22.0.0, 21.0.0 Dec 27, 2018
@johnsaigle johnsaigle deleted the 181128-ImproveModuleDebugging branch January 23, 2019 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Feature PR or issue that aims to introduce a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants