-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Create new CLI command: Enable DB logging #9200
Comments
I think could be very useful |
@federivo volunteered for this contribution. |
Great @vrann , thank you. |
Hey @vrann I would love your feedback on these.
I see this one as a setting in the core_config_data table as much as the "dev/debug/template_hints_storefront" setting for template hints. One thing to consider is that the user will still need to change the preference for the dependency. In my point of view, if the command somehow set which implementation of the DB logger to use it will override the user preference who may be using Thoughts?
This should change the setting "dev/debug/template_hints_storefront" in the core_config_data table. Set to true if it is false and viceversa.
I'm in doubt with this one. Should this enable / disable the outcome of this: http://devdocs.magento.com/guides/v2.1/config-guide/db-profiler/db-profiler.html ? Thanks! |
@federivo Hi, can you join the slack team https://magentocommeng.slack.com/, I created the room to discuss this work. Let's attack the first issue: query logging.
However, Magento has a mechanism to pass the configuration to the DI from the app/etc/env.php file. As far as you know, this file contains deployment information for the Magento and should exist prior doing database connections. As a reference on how to pass parameters to the DI, you can check For the sake of query logging you can do following:
|
Internal ticket to track issue progress: MAGETWO-67501 |
In order to help developers to work with the Magento, create new commands which will simplify the debugging of the application. Currently, enabling of these setting require doing that either with the UI or changing the configuration of the di.xml.
Create CLI command which will make possible to enable/disable DB query logging
The text was updated successfully, but these errors were encountered: