Issue #2986294 by dagmar, pritish.kumar, zuhair_ak, catch, alexpott: Remove $context['user'] from LoggerChannel::log
parent
e4b39ba7b9
commit
bc043fd01d
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue