Development

Changeset 10971

You must first sign up to be able to contribute.

Changeset 10971

Show
Ignore:
Timestamp:
08/19/08 21:16:41 (11 months ago)
Author:
fabien
Message:

[1.2] tweaked routing log messages

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/routing/sfPatternRouting.class.php

    r10593 r10971  
    553553      if (!$found) 
    554554      { 
    555         throw new sfConfigurationException(sprintf('Unable to find a matching routing rule to generate url for params "%s".', var_export($params, true))); 
     555        throw new sfConfigurationException(sprintf('Unable to find a matching routing rule to generate url for params "%s".', str_replace("\n", '', var_export($params, true)))); 
    556556      } 
    557557    } 
     
    617617      if ($this->options['logging']) 
    618618      { 
    619         $this->dispatcher->notify(new sfEvent($this, 'application.log', array(sprintf('Match route [%s] for "%s"', $routeInfo['name'], $routeInfo['route'])))); 
     619        $this->dispatcher->notify(new sfEvent($this, 'application.log', array(sprintf('Match route [%s] for "%s" with parameters %s', $routeInfo['name'], $routeInfo['route'], str_replace("\n", '', var_export($routeInfo['parameters'], true)))))); 
    620620      } 
    621621    } 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.