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
d1c41fe1
Commit
d1c41fe1
authored
Aug 10, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed to trace from info.
parent
9193e477
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
12 deletions
+12
-12
Action.php
framework/yii/base/Action.php
+1
-1
InlineAction.php
framework/yii/base/InlineAction.php
+1
-1
Model.php
framework/yii/base/Model.php
+1
-1
View.php
framework/yii/base/View.php
+1
-1
Command.php
framework/yii/db/Command.php
+2
-3
LogPanel.php
framework/yii/debug/panels/LogPanel.php
+1
-1
AssetBundle.php
framework/yii/web/AssetBundle.php
+1
-0
AssetConverter.php
framework/yii/web/AssetConverter.php
+1
-1
UrlManager.php
framework/yii/web/UrlManager.php
+3
-3
No files found.
framework/yii/base/Action.php
View file @
d1c41fe1
...
...
@@ -77,7 +77,7 @@ class Action extends Component
throw
new
InvalidConfigException
(
get_class
(
$this
)
.
' must define a "run()" method.'
);
}
$args
=
$this
->
controller
->
bindActionParams
(
$this
,
$params
);
Yii
::
info
(
'Running action: '
.
get_class
(
$this
)
.
'::run()'
,
__METHOD__
);
Yii
::
trace
(
'Running action: '
.
get_class
(
$this
)
.
'::run()'
,
__METHOD__
);
if
(
Yii
::
$app
->
requestedParams
===
null
)
{
Yii
::
$app
->
requestedParams
=
$args
;
}
...
...
framework/yii/base/InlineAction.php
View file @
d1c41fe1
...
...
@@ -46,7 +46,7 @@ class InlineAction extends Action
public
function
runWithParams
(
$params
)
{
$args
=
$this
->
controller
->
bindActionParams
(
$this
,
$params
);
Yii
::
info
(
'Running action: '
.
get_class
(
$this
->
controller
)
.
'::'
.
$this
->
actionMethod
.
'()'
,
__METHOD__
);
Yii
::
trace
(
'Running action: '
.
get_class
(
$this
->
controller
)
.
'::'
.
$this
->
actionMethod
.
'()'
,
__METHOD__
);
if
(
Yii
::
$app
->
requestedParams
===
null
)
{
Yii
::
$app
->
requestedParams
=
$args
;
}
...
...
framework/yii/base/Model.php
View file @
d1c41fe1
...
...
@@ -571,7 +571,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess
public
function
onUnsafeAttribute
(
$name
,
$value
)
{
if
(
YII_DEBUG
)
{
\Yii
::
info
(
"Failed to set unsafe attribute '
$name
' in '"
.
get_class
(
$this
)
.
"'."
,
__METHOD__
);
Yii
::
trace
(
"Failed to set unsafe attribute '
$name
' in '"
.
get_class
(
$this
)
.
"'."
,
__METHOD__
);
}
}
...
...
framework/yii/base/View.php
View file @
d1c41fe1
...
...
@@ -269,7 +269,7 @@ class View extends Component
$renderer
=
$this
->
renderers
[
$ext
];
$output
=
$renderer
->
render
(
$this
,
$viewFile
,
$params
);
}
else
{
Yii
::
info
(
"Rendering view file:
$viewFile
"
,
__METHOD__
);
Yii
::
trace
(
"Rendering view file:
$viewFile
"
,
__METHOD__
);
$output
=
$this
->
renderPhpFile
(
$viewFile
,
$params
);
}
$this
->
afterRender
(
$viewFile
,
$output
);
...
...
framework/yii/db/Command.php
View file @
d1c41fe1
...
...
@@ -275,7 +275,7 @@ class Command extends \yii\base\Component
$rawSql
=
$this
->
getRawSql
();
Yii
::
info
(
$rawSql
,
__METHOD__
);
Yii
::
trace
(
$rawSql
,
__METHOD__
);
if
(
$sql
==
''
)
{
return
0
;
...
...
@@ -377,10 +377,9 @@ class Command extends \yii\base\Component
private
function
queryInternal
(
$method
,
$fetchMode
=
null
)
{
$db
=
$this
->
db
;
$sql
=
$this
->
getSql
();
$rawSql
=
$this
->
getRawSql
();
Yii
::
info
(
$rawSql
,
__METHOD__
);
Yii
::
trace
(
$rawSql
,
__METHOD__
);
/** @var $cache \yii\caching\Cache */
if
(
$db
->
enableQueryCache
&&
$method
!==
''
)
{
...
...
framework/yii/debug/panels/LogPanel.php
View file @
d1c41fe1
...
...
@@ -74,7 +74,7 @@ EOD;
$class
=
''
;
}
$level
=
Logger
::
getLevelName
(
$level
);
$rows
[]
=
"<tr
$class
><td style=
\"
width: 100px;
\"
>
$time
</td><td style=
\"
width: 100px;
\"
>
$level
</td><td style=
\"
width: 250px;
\"
>
$category
</td><td>
$message
</td></tr>"
;
$rows
[]
=
"<tr
$class
><td style=
\"
width: 100px;
\"
>
$time
</td><td style=
\"
width: 100px;
\"
>
$level
</td><td style=
\"
width: 250px;
\"
>
$category
</td><td>
<div style=
\"
overflow:auto
\"
>
$message
</div>
</td></tr>"
;
}
$rows
=
implode
(
"
\n
"
,
$rows
);
return
<<<EOD
...
...
framework/yii/web/AssetBundle.php
View file @
d1c41fe1
...
...
@@ -113,6 +113,7 @@ class AssetBundle extends Object
/**
* Initializes the bundle.
* If you override this method, make sure you call the parent implementation in the last.
*/
public
function
init
()
{
...
...
framework/yii/web/AssetConverter.php
View file @
d1c41fe1
...
...
@@ -51,7 +51,7 @@ class AssetConverter extends Component implements IAssetConverter
'{to}'
=>
escapeshellarg
(
"
$basePath
/
$result
"
),
));
exec
(
$command
,
$output
);
Yii
::
info
(
"Converted
$asset
into
$result
: "
.
implode
(
"
\n
"
,
$output
),
__METHOD__
);
Yii
::
trace
(
"Converted
$asset
into
$result
: "
.
implode
(
"
\n
"
,
$output
),
__METHOD__
);
}
return
$result
;
}
...
...
framework/yii/web/UrlManager.php
View file @
d1c41fe1
...
...
@@ -172,7 +172,7 @@ class UrlManager extends Component
/** @var $rule UrlRule */
foreach
(
$this
->
rules
as
$rule
)
{
if
((
$result
=
$rule
->
parseRequest
(
$this
,
$request
))
!==
false
)
{
Yii
::
info
(
"Request parsed with URL rule:
{
$rule
->
name
}
"
,
__METHOD__
);
Yii
::
trace
(
"Request parsed with URL rule:
{
$rule
->
name
}
"
,
__METHOD__
);
return
$result
;
}
}
...
...
@@ -196,14 +196,14 @@ class UrlManager extends Component
}
}
Yii
::
info
(
'No matching URL rules. Using default URL parsing logic.'
,
__METHOD__
);
Yii
::
trace
(
'No matching URL rules. Using default URL parsing logic.'
,
__METHOD__
);
return
array
(
$pathInfo
,
array
());
}
else
{
$route
=
$request
->
get
(
$this
->
routeVar
);
if
(
is_array
(
$route
))
{
$route
=
''
;
}
Yii
::
info
(
'Pretty URL not enabled. Using default URL parsing logic.'
,
__METHOD__
);
Yii
::
trace
(
'Pretty URL not enabled. Using default URL parsing logic.'
,
__METHOD__
);
return
array
((
string
)
$route
,
array
());
}
}
...
...
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