-
-
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
dev/core#474 - Show missing log table warning only if logging is enabled #13010
Conversation
(Standard links)
|
CRM/Utils/Check/Component/Schema.php
Outdated
|
||
if ($missingLogTables) { | ||
if ($config->logging && $missingLogTables) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not just CRM_Core_Config::singleton()->logging ? @eileenmcnaughton
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seamuslee001 I agree that would be better - but I see your CRM_Core_Config::singleton()->logging
and raise you a \Civi::setings()->get('logging');
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeh setting is probably better / more straight forward
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seamuslee001 but you must be pre-coffee ATM - can we trust anything you say right now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a bit yes but it also your suggestion you know
We should definitely do this - @jitendrapurohit can you tweak the line to one of the other options just as part of discouraging the pattern of defining $config & then using it. My pref is the setting version.... |
7c0fea7
to
2694304
Compare
Done 👍 |
Merging as per the tag |
Overview
Fix missing log table warning on the status page.
Before
Missing Log table warning is shown even if logging is disabled in the following scenario -
The last step should also check if the logging is enabled on the site even if it is able to find some core log tables already present in the db.
After
Missing log table warning only shown if logging is enabled.
Comments
Gitlab - https://lab.civicrm.org/dev/core/issues/474