From bc043fd01d60cc6d34cd2f4a5887bfb5adb054d3 Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Tue, 11 Sep 2018 10:43:00 +0100
Subject: [PATCH] Issue #2986294 by dagmar, pritish.kumar, zuhair_ak, catch,
 alexpott: Remove $context['user'] from LoggerChannel::log

---
 core/lib/Drupal/Core/Logger/LoggerChannel.php | 2 --
 1 file changed, 2 deletions(-)

diff --git a/core/lib/Drupal/Core/Logger/LoggerChannel.php b/core/lib/Drupal/Core/Logger/LoggerChannel.php
index 51141f784604..1975ef5fd3e9 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();
         }
       }
-- 
GitLab