Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
z-push
Project
Project
Details
Activity
Releases
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
Björn Fischer
z-push
Commits
159c6ba7
Commit
159c6ba7
authored
Mar 13, 2017
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-1182 Check all loglevels bitwise.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
2f669bf7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
filelog.php
src/lib/log/filelog.php
+1
-1
No files found.
src/lib/log/filelog.php
View file @
159c6ba7
...
@@ -118,7 +118,7 @@ class FileLog extends Log {
...
@@ -118,7 +118,7 @@ class FileLog extends Log {
* @return void
* @return void
*/
*/
protected
function
afterLog
(
$loglevel
,
$message
)
{
protected
function
afterLog
(
$loglevel
,
$message
)
{
if
(
(
$loglevel
&
LOGLEVEL_FATAL
)
||
(
$loglevel
&
LOGLEVEL_ERROR
)
||
(
$loglevel
&
LOGLEVEL_WARN
))
{
if
(
$loglevel
&
(
LOGLEVEL_FATAL
|
LOGLEVEL_ERROR
|
LOGLEVEL_WARN
))
{
$data
=
$this
->
buildLogString
(
$loglevel
,
$message
)
.
PHP_EOL
;
$data
=
$this
->
buildLogString
(
$loglevel
,
$message
)
.
PHP_EOL
;
@
file_put_contents
(
LOGERRORFILE
,
$data
,
FILE_APPEND
);
@
file_put_contents
(
LOGERRORFILE
,
$data
,
FILE_APPEND
);
}
}
...
...
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