Skip to content

Commit

Permalink
Fix for overwriting variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Olde Hampsink committed Jan 26, 2017
1 parent 2241e81 commit 6c2e255
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions logging/LogHelper_BaseLogRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function init()
*/
protected function processLogs($logs)
{
$logs = array();
$processed = array();

foreach ($logs as $log) {
$message = LoggingHelper::redact($log[0]);
Expand All @@ -52,10 +52,10 @@ protected function processLogs($logs)
$force = (isset($log[4]) && $log[4] == true) ? true : false;
$plugin = isset($log[5]) ? StringHelper::toLowerCase($log[5]) : 'craft';

$logs[] = $this->formatLogMessageWithForce($message, $level, $category, $time, $force, $plugin);
$processed[] = $this->formatLogMessageWithForce($message, $level, $category, $time, $force, $plugin);
}

return $logs;
return $processed;
}

/**
Expand Down

0 comments on commit 6c2e255

Please sign in to comment.