From: Brian Wolff Date: Fri, 15 Jun 2018 07:29:49 +0000 (+0000) Subject: Better logging for reauth operations X-Git-Tag: 1.34.0-rc.0~5041 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=9d5a5b29d4cef92fbe77ebd5f85a963fe4764deb;p=lhc%2Fweb%2Fwiklou.git Better logging for reauth operations Include username and IP address in log Change-Id: I25c6d298e50876601ccd6a906eb7a7c65d2e8d87 --- 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; }