Issue #2986294 by dagmar, pritish.kumar, zuhair_ak, catch, alexpott: Remove $context['user'] from LoggerChannel::log

8.7.x
Nathaniel Catchpole 2018-09-11 10:43:00 +01:00
parent e4b39ba7b9
commit bc043fd01d
1 changed files with 0 additions and 2 deletions

View File

@ -101,7 +101,6 @@ class LoggerChannel implements LoggerChannelInterface {
$context += [ $context += [
'channel' => $this->channel, 'channel' => $this->channel,
'link' => '', 'link' => '',
'user' => NULL,
'uid' => 0, 'uid' => 0,
'request_uri' => '', 'request_uri' => '',
'referer' => '', 'referer' => '',
@ -115,7 +114,6 @@ class LoggerChannel implements LoggerChannelInterface {
$context['ip'] = $request->getClientIP(); $context['ip'] = $request->getClientIP();
try { try {
if ($this->currentUser) { if ($this->currentUser) {
$context['user'] = $this->currentUser;
$context['uid'] = $this->currentUser->id(); $context['uid'] = $this->currentUser->id();
} }
} }