fix faker script
This commit is contained in:
@@ -364,6 +364,7 @@ try {
|
|||||||
$productAssociatedContent = new Thelia\Model\ProductAssociatedContent();
|
$productAssociatedContent = new Thelia\Model\ProductAssociatedContent();
|
||||||
do {
|
do {
|
||||||
$pick = array_rand($contentIdList, 1);
|
$pick = array_rand($contentIdList, 1);
|
||||||
|
\Thelia\Log\Tlog::getInstance()->debug("pick : $pick");
|
||||||
} while(in_array($pick, $alreadyPicked));
|
} while(in_array($pick, $alreadyPicked));
|
||||||
|
|
||||||
$alreadyPicked[] = $pick;
|
$alreadyPicked[] = $pick;
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ class PropelCollector extends DataCollector implements Renderable, LoggerInterfa
|
|||||||
$message = "$sql ($duration_str)";
|
$message = "$sql ($duration_str)";
|
||||||
|
|
||||||
if ($this->alternativeLogger) {
|
if ($this->alternativeLogger) {
|
||||||
$this->alternativeLogger->info($message);
|
$this->alternativeLogger->log($level, $message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -180,7 +180,7 @@ class PropelCollector extends DataCollector implements Renderable, LoggerInterfa
|
|||||||
*/
|
*/
|
||||||
public function emergency($message, array $context = array())
|
public function emergency($message, array $context = array())
|
||||||
{
|
{
|
||||||
$this->log(null, $message, $context);
|
$this->log(\Thelia\Log\Tlog::EMERGENCY, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -195,7 +195,7 @@ class PropelCollector extends DataCollector implements Renderable, LoggerInterfa
|
|||||||
*/
|
*/
|
||||||
public function alert($message, array $context = array())
|
public function alert($message, array $context = array())
|
||||||
{
|
{
|
||||||
$this->log(null, $message, $context);
|
$this->log(\Thelia\Log\Tlog::ALERT, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -209,7 +209,7 @@ class PropelCollector extends DataCollector implements Renderable, LoggerInterfa
|
|||||||
*/
|
*/
|
||||||
public function critical($message, array $context = array())
|
public function critical($message, array $context = array())
|
||||||
{
|
{
|
||||||
$this->log(null, $message, $context);
|
$this->log(\Thelia\Log\Tlog::CRITICAL, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -222,7 +222,7 @@ class PropelCollector extends DataCollector implements Renderable, LoggerInterfa
|
|||||||
*/
|
*/
|
||||||
public function error($message, array $context = array())
|
public function error($message, array $context = array())
|
||||||
{
|
{
|
||||||
$this->log(null, $message, $context);
|
$this->log(\Thelia\Log\Tlog::ERROR, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -237,7 +237,7 @@ class PropelCollector extends DataCollector implements Renderable, LoggerInterfa
|
|||||||
*/
|
*/
|
||||||
public function warning($message, array $context = array())
|
public function warning($message, array $context = array())
|
||||||
{
|
{
|
||||||
$this->log(null, $message, $context);
|
$this->log(\Thelia\Log\Tlog::WARNING, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -249,7 +249,7 @@ class PropelCollector extends DataCollector implements Renderable, LoggerInterfa
|
|||||||
*/
|
*/
|
||||||
public function notice($message, array $context = array())
|
public function notice($message, array $context = array())
|
||||||
{
|
{
|
||||||
$this->log(null, $message, $context);
|
$this->log(\Thelia\Log\Tlog::NOTICE, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -263,7 +263,7 @@ class PropelCollector extends DataCollector implements Renderable, LoggerInterfa
|
|||||||
*/
|
*/
|
||||||
public function info($message, array $context = array())
|
public function info($message, array $context = array())
|
||||||
{
|
{
|
||||||
$this->log(null, $message, $context);
|
$this->log(\Thelia\Log\Tlog::INFO, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -275,7 +275,7 @@ class PropelCollector extends DataCollector implements Renderable, LoggerInterfa
|
|||||||
*/
|
*/
|
||||||
public function debug($message, array $context = array())
|
public function debug($message, array $context = array())
|
||||||
{
|
{
|
||||||
$this->log(null, $message, $context);
|
$this->log(\Thelia\Log\Tlog::DEBUG, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user