Commit 23573968 by Qiang Xue

Changed important log messages to info level

parent 20018b3f
...@@ -110,7 +110,7 @@ class Mailer extends BaseMailer ...@@ -110,7 +110,7 @@ class Mailer extends BaseMailer
if (is_array($address)) { if (is_array($address)) {
$address = implode(', ', array_keys($address)); $address = implode(', ', array_keys($address));
} }
Yii::trace('Sending email "' . $message->getSubject() . '" to "' . $address . '"', __METHOD__); Yii::info('Sending email "' . $message->getSubject() . '" to "' . $address . '"', __METHOD__);
return $this->getSwiftMailer()->send($message->getSwiftMessage()) > 0; return $this->getSwiftMailer()->send($message->getSwiftMessage()) > 0;
} }
......
...@@ -260,7 +260,7 @@ class Command extends \yii\base\Component ...@@ -260,7 +260,7 @@ class Command extends \yii\base\Component
$rawSql = $this->getRawSql(); $rawSql = $this->getRawSql();
Yii::trace($rawSql, __METHOD__); Yii::info($rawSql, __METHOD__);
if ($sql == '') { if ($sql == '') {
return 0; return 0;
...@@ -364,7 +364,7 @@ class Command extends \yii\base\Component ...@@ -364,7 +364,7 @@ class Command extends \yii\base\Component
$db = $this->db; $db = $this->db;
$rawSql = $this->getRawSql(); $rawSql = $this->getRawSql();
Yii::trace($rawSql, __METHOD__); Yii::info($rawSql, __METHOD__);
/** @var $cache \yii\caching\Cache */ /** @var $cache \yii\caching\Cache */
if ($db->enableQueryCache && $method !== '') { if ($db->enableQueryCache && $method !== '') {
......
...@@ -210,7 +210,7 @@ abstract class BaseMailer extends Component implements MailerInterface, ViewCont ...@@ -210,7 +210,7 @@ abstract class BaseMailer extends Component implements MailerInterface, ViewCont
if (is_array($address)) { if (is_array($address)) {
$address = implode(', ', array_keys($address)); $address = implode(', ', array_keys($address));
} }
Yii::trace('Sending email "' . $message->getSubject() . '" to "' . $address . '"', __METHOD__); Yii::info('Sending email "' . $message->getSubject() . '" to "' . $address . '"', __METHOD__);
if ($this->useFileTransport) { if ($this->useFileTransport) {
return $this->saveMessage($message); return $this->saveMessage($message);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment