Created
October 10, 2017 20:44
-
-
Save yvoronoy/bdc31ca9bb42898189b61ff668b7537a to your computer and use it in GitHub Desktop.
Magento2 - MySQL Debug Log Enabler PATCH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git app/etc/di.xml app/etc/di.xml | |
index 69403de..b43d771 100755 | |
--- app/etc/di.xml | |
+++ app/etc/di.xml | |
@@ -93,7 +93,13 @@ | |
<preference for="Magento\Framework\Api\MetadataObjectInterface" type="Magento\Framework\Api\AttributeMetadata"/> | |
<preference for="Magento\Framework\Api\SearchCriteriaInterface" type="Magento\Framework\Api\SearchCriteria"/> | |
<preference for="Magento\Framework\App\Rss\UrlBuilderInterface" type="Magento\Framework\App\Rss\UrlBuilder"/> | |
- <preference for="Magento\Framework\DB\LoggerInterface" type="Magento\Framework\DB\Logger\Quiet"/> | |
+ <preference for="Magento\Framework\DB\LoggerInterface" type="Magento\Framework\DB\Logger\File"/> | |
+ <type name="Magento\Framework\DB\Logger\File"> | |
+ <arguments> | |
+ <argument name="logAllQueries" xsi:type="boolean">true</argument> | |
+ <argument name="logCallStack" xsi:type="boolean">true</argument> | |
+ </arguments> | |
+ </type> | |
<preference for="Magento\Framework\App\ResourceConnection\ConnectionAdapterInterface" type="Magento\Framework\Model\ResourceModel\Type\Db\Pdo\Mysql"/> | |
<preference for="Magento\Framework\DB\QueryInterface" type="Magento\Framework\DB\Query"/> | |
<preference for="Magento\Framework\App\ProductMetadataInterface" type="Magento\Framework\App\ProductMetadata"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment