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
35df318e
Commit
35df318e
authored
Dec 13, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1500: Log messages exported to files are not separated by newlines
parent
35c931ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
FileTarget.php
framework/yii/log/FileTarget.php
+1
-4
No files found.
framework/CHANGELOG.md
View file @
35df318e
...
...
@@ -6,6 +6,7 @@ Yii Framework 2 Change Log
-
Bug #1446: Logging while logs are processed causes infinite loop (qiangxue)
-
Bug #1497: Localized view files are not correctly returned (mintao)
-
Bug #1500: Log messages exported to files are not separated by newlines (omnilight, qiangxue)
-
Bug #1509: The SQL for creating Postgres RBAC tables is incorrect (qiangxue)
-
Bug: Fixed
`Call to a member function registerAssetFiles() on a non-object`
in case of wrong
`sourcePath`
for an asset bundle (samdark)
-
Enh #1293: Replaced Console::showProgress() with a better approach. See Console::startProgress() for details (cebe)
...
...
framework/yii/log/FileTarget.php
View file @
35df318e
...
...
@@ -83,10 +83,7 @@ class FileTarget extends Target
*/
public
function
export
()
{
$text
=
''
;
foreach
(
$this
->
messages
as
$message
)
{
$text
.=
$this
->
formatMessage
(
$message
);
}
$text
=
implode
(
"
\n
"
,
array_map
([
$this
,
'formatMessage'
],
$this
->
messages
))
.
"
\n
"
;
if
((
$fp
=
@
fopen
(
$this
->
logFile
,
'a'
))
===
false
)
{
throw
new
InvalidConfigException
(
"Unable to append to log file:
{
$this
->
logFile
}
"
);
}
...
...
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