From 9d5a5b29d4cef92fbe77ebd5f85a963fe4764deb Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Fri, 15 Jun 2018 07:29:49 +0000 Subject: [PATCH] Better logging for reauth operations Include username and IP address in log Change-Id: I25c6d298e50876601ccd6a906eb7a7c65d2e8d87 --- includes/auth/AuthManager.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/auth/AuthManager.php b/includes/auth/AuthManager.php index 161dd56320..3260ce4b64 100644 --- a/includes/auth/AuthManager.php +++ b/includes/auth/AuthManager.php @@ -771,7 +771,12 @@ class AuthManager implements LoggerAwareInterface { $status = self::SEC_FAIL; } - $this->logger->info( __METHOD__ . ": $operation is $status" ); + $this->logger->info( __METHOD__ . ": $operation is $status for '{user}'", + [ + 'user' => $session->getUser()->getName(), + 'clientip' => $this->getRequest()->getIP(), + ] + ); return $status; } -- 2.20.1