Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Apr 4, 2019
1 parent 1598c43 commit de88b24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ public function logBackTrace($msg, $line = '', $file = '')
((isset($_FILES) && count($_FILES)) ? ' FILES='.json_encode($_FILES) : '').
('' !== getenv('HTTP_USER_AGENT') ? ' AGENT="'.getenv('HTTP_USER_AGENT').'"' : '').
(isset($_SERVER['REQUEST_METHOD']) ? ' METHOD="'.$_SERVER['REQUEST_METHOD'].'"'.
($_SERVER['REQUEST_METHOD'] === 'POST' ? ' POST="'.json_encode($_POST).'"' : '') : ''), $line, $file, 'error');
($_SERVER['REQUEST_METHOD'] === 'POST' ? ' POST="'.json_encode($_POST).'"' : '') : ''),
$line,
$file,
'error'
);
for ($level = 1, $levelMax = count($backtrace); $level < $levelMax; $level++) {
$message = (isset($backtrace[$level]['file']) ? 'File: '.$backtrace[$level]['file'] : '').
(isset($backtrace[$level]['line']) ? ' Line: '.$backtrace[$level]['line'] : '').
Expand Down

0 comments on commit de88b24

Please sign in to comment.