Skip to content

Commit

Permalink
tweak error log settings
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 11, 2017
1 parent 6704b2a commit a044f17
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Illuminate/Log/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,8 @@ public function useSyslog($name = 'laravel', $level = 'debug', $facility = LOG_U
public function useErrorLog($level = 'debug', $messageType = ErrorLogHandler::OPERATING_SYSTEM)
{
$this->monolog->pushHandler(
$handler = new ErrorLogHandler($messageType, $this->parseLevel($level))
new ErrorLogHandler($messageType, $this->parseLevel($level))
);

$handler->setFormatter($this->getDefaultFormatter());
}

/**
Expand Down

0 comments on commit a044f17

Please sign in to comment.