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