Update to Drupal 8.0.3. For more information, see https://www.drupal.org/drupal-8.0.3-release-notes
This commit is contained in:
parent
10f9f7fbde
commit
9db4fae9a7
202 changed files with 3806 additions and 760 deletions
|
@ -93,9 +93,17 @@ class LoggerChannel implements LoggerChannelInterface {
|
|||
$context['request_uri'] = $request->getUri();
|
||||
$context['referer'] = $request->headers->get('Referer', '');
|
||||
$context['ip'] = $request->getClientIP();
|
||||
if ($this->currentUser) {
|
||||
$context['user'] = $this->currentUser;
|
||||
$context['uid'] = $this->currentUser->id();
|
||||
try {
|
||||
if ($this->currentUser) {
|
||||
$context['user'] = $this->currentUser;
|
||||
$context['uid'] = $this->currentUser->id();
|
||||
}
|
||||
}
|
||||
catch (\Exception $e) {
|
||||
// An exception might be thrown if the database connection is not
|
||||
// available or due to another unexpected reason. It is more important
|
||||
// to log the error that we already have so any additional exceptions
|
||||
// are ignored.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -23,10 +23,7 @@ interface LoggerChannelFactoryInterface {
|
|||
public function get($channel);
|
||||
|
||||
/**
|
||||
* Adds a logger.
|
||||
*
|
||||
* Here is were all services tagged as 'logger' are being retrieved and then
|
||||
* passed to the channels after instantiation.
|
||||
* Adds a logger to all the channels.
|
||||
*
|
||||
* @param \Psr\Log\LoggerInterface $logger
|
||||
* The PSR-3 logger to add.
|
||||
|
|
Reference in a new issue