Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
23573968
Commit
23573968
authored
Nov 11, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed important log messages to info level
parent
20018b3f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Mailer.php
extensions/swiftmailer/Mailer.php
+1
-1
Command.php
framework/yii/db/Command.php
+2
-2
BaseMailer.php
framework/yii/mail/BaseMailer.php
+1
-1
No files found.
extensions/swiftmailer/Mailer.php
View file @
23573968
...
@@ -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
;
}
}
...
...
framework/yii/db/Command.php
View file @
23573968
...
@@ -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
!==
''
)
{
...
...
framework/yii/mail/BaseMailer.php
View file @
23573968
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment