Added more methods to log in order to use the Stopwatch feature
This commit is contained in:
parent
11dd106524
commit
2be58a2cb9
2 changed files with 13 additions and 5 deletions
|
|
@ -35,13 +35,20 @@ class PropelBundle extends Bundle
|
|||
\Propel::setConfiguration($this->container->get('propel.configuration'));
|
||||
|
||||
if ($this->container->getParameter('propel.logging')) {
|
||||
$this
|
||||
$config = $this
|
||||
->container
|
||||
->get('propel.configuration')
|
||||
->setParameter('debugpdo.logging.details', array(
|
||||
'time' => array('enabled' => true),
|
||||
'mem' => array('enabled' => true),
|
||||
));
|
||||
;
|
||||
$config->setParameter('debugpdo.logging.methods', array(
|
||||
'PropelPDO::exec',
|
||||
'PropelPDO::query',
|
||||
'PropelPDO::prepare',
|
||||
'DebugPDOStatement::execute',
|
||||
), false);
|
||||
$config->setParameter('debugpdo.logging.details', array(
|
||||
'time' => array('enabled' => true),
|
||||
'mem' => array('enabled' => true),
|
||||
));
|
||||
|
||||
\Propel::setLogger($this->container->get('propel.logger'));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
<service id="propel.logger" class="%propel.logger.class%">
|
||||
<tag name="monolog.logger" channel="propel" />
|
||||
<argument type="service" id="logger" on-invalid="null" />
|
||||
<argument type="service" id="debug.stopwatch" on-invalid="null" />
|
||||
</service>
|
||||
|
||||
<service id="propel.data_collector" class="%propel.data_collector.class%" public="false">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue