Browse Source

Changed important log messages to info level

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
23573968a6
  1. 2
      extensions/swiftmailer/Mailer.php
  2. 4
      framework/yii/db/Command.php
  3. 2
      framework/yii/mail/BaseMailer.php

2
extensions/swiftmailer/Mailer.php

@ -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;
} }

4
framework/yii/db/Command.php

@ -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
$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 !== '') {

2
framework/yii/mail/BaseMailer.php

@ -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);

Loading…
Cancel
Save