From 23573968a6bff7c4e9c3fcd8ed6c2041a6515334 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Mon, 11 Nov 2013 20:19:25 -0500 Subject: [PATCH] Changed important log messages to info level --- extensions/swiftmailer/Mailer.php | 2 +- framework/yii/db/Command.php | 4 ++-- framework/yii/mail/BaseMailer.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/swiftmailer/Mailer.php b/extensions/swiftmailer/Mailer.php index 35b3b7c..3418d8d 100644 --- a/extensions/swiftmailer/Mailer.php +++ b/extensions/swiftmailer/Mailer.php @@ -110,7 +110,7 @@ class Mailer extends BaseMailer if (is_array($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; } diff --git a/framework/yii/db/Command.php b/framework/yii/db/Command.php index 671558a..4dffb01 100644 --- a/framework/yii/db/Command.php +++ b/framework/yii/db/Command.php @@ -260,7 +260,7 @@ class Command extends \yii\base\Component $rawSql = $this->getRawSql(); - Yii::trace($rawSql, __METHOD__); + Yii::info($rawSql, __METHOD__); if ($sql == '') { return 0; @@ -364,7 +364,7 @@ class Command extends \yii\base\Component $db = $this->db; $rawSql = $this->getRawSql(); - Yii::trace($rawSql, __METHOD__); + Yii::info($rawSql, __METHOD__); /** @var $cache \yii\caching\Cache */ if ($db->enableQueryCache && $method !== '') { diff --git a/framework/yii/mail/BaseMailer.php b/framework/yii/mail/BaseMailer.php index 6311549..d907918 100644 --- a/framework/yii/mail/BaseMailer.php +++ b/framework/yii/mail/BaseMailer.php @@ -210,7 +210,7 @@ abstract class BaseMailer extends Component implements MailerInterface, ViewCont if (is_array($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) { return $this->saveMessage($message);