docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

db log enable working?

Open kevinjavitz opened this issue 1 year ago • 1 comments

Description https://experienceleague.adobe.com/docs/commerce-operations/configuration-guide/cli/enable-logging.html

Steps To Reproduce

  1. bin/magento dev:query-log:enable
  2. bin/magento cache:flush

Expected Result queries logged to var/debug/db.log

Actual Result var/debug folder empty

kevinjavitz avatar Sep 08 '23 05:09 kevinjavitz

@salesigniter the var directory is not synced back to the host for performance reasons. Have you checked the var directory within the container?

You can do this either by running:

bin/cli cat var/debug/db.log

Or dropping into the container's shell with:

bin/bash

markshust avatar Sep 22 '23 03:09 markshust