diff --git a/core/lib/Drupal/Core/Logger/LoggerChannel.php b/core/lib/Drupal/Core/Logger/LoggerChannel.php index 51141f78460..1975ef5fd3e 100644 --- a/core/lib/Drupal/Core/Logger/LoggerChannel.php +++ b/core/lib/Drupal/Core/Logger/LoggerChannel.php @@ -101,7 +101,6 @@ class LoggerChannel implements LoggerChannelInterface { $context += [ 'channel' => $this->channel, 'link' => '', - 'user' => NULL, 'uid' => 0, 'request_uri' => '', 'referer' => '', @@ -115,7 +114,6 @@ class LoggerChannel implements LoggerChannelInterface { $context['ip'] = $request->getClientIP(); try { if ($this->currentUser) { - $context['user'] = $this->currentUser; $context['uid'] = $this->currentUser->id(); } }