DebugKit SQL Log for dynamically created db connection

Hello,

When I create database connection dynamically in my application with setConfig() (i.e. datasource setting not written in app.php or written but reconfigured)
DebugKit SQL Log is not working for this connection.

Can I enable DebugKit SQL Log for this kind of connection?

in app.php

‘Datasources’ => [
‘connectionA’ => […]
],

… SQL log works

in controller

ConnectionManager::setConfig(‘connectionB’, $new_config);

… SQL log doesn’t works

‘log’ => true did not affect this issue.

Thanks

Please open an issue for this here https://github.com/cakephp/debug_kit/issues

Hi coreytaylor,
Thank you for your advise!
I found I’m using a little bit older version, so I’ll open an issue after checking latest version.