Skip to content

Commit

Permalink
Fire MessageLogged after the message has been logged. (#31843)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot authored Mar 8, 2020
1 parent 0514432 commit 01ca1c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Log/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ public function write($level, $message, array $context = [])
*/
protected function writeLog($level, $message, $context)
{
$this->fireLogEvent($level, $message = $this->formatMessage($message), $context);
$this->logger->{$level}($message = $this->formatMessage($message), $context);

$this->logger->{$level}($message, $context);
$this->fireLogEvent($level, $message, $context);
}

/**
Expand Down

0 comments on commit 01ca1c3

Please sign in to comment.