-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Managed - Log errors instead of throwing exceptions unless in debug mode #26891
Conversation
Thank you for contributing to CiviCRM! ❤️ We will need to test and review the PR. 👷 Introduction for new contributors
Quick links for reviewers |
…ditions) 1. The priority is 'error' (or something more severe) 2. The site has enabled debug output 3. The page-request message occurs while the session is available
@colemanw Oooh, so one of the tests. was specifically expecting it to throw exceptions. But since the typical behavior will be to log it, perhaps we can check the log for the assertion(dfe755c)? |
@totten that worked! |
Looks like this doesn't solve the problem in #26674. Build is still failing there for the same reason: I'm guessing maybe upgrade mode is not in effect when we are installing rather than upgrading? |
Oof, guess not. I wonder if there is an equivalent method of checking if we are in install mode. |
@larssandergreen it looks like we could use |
Followup from civicrm#26891 to exclude install as well as upgrade mode.
Followup from civicrm#26891 to exclude install as well as upgrade mode.
Followup from civicrm#26891 to exclude install as well as upgrade mode.
Followup from civicrm#26891 to exclude install as well as upgrade mode.
Followup from civicrm#26891 to exclude install as well as upgrade mode.
Overview
Alternative to #26849, this aims to minimize hard crashes and appropriately log errors when reconciling managed entities.
Before
When reconciling managed entities, the system would throw an uncaught exception (hard crash) if it encountered an api error.
After
Comments
@totten per our discussion