Gergő Tisza has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/338298 )

Change subject: Demote "throttler data not found" logs to info level
......................................................................

Demote "throttler data not found" logs to info level

Bug: T158364
Change-Id: I049c2d6da4720341ef2a380879ac19aff444b1d0
---
M includes/auth/ThrottlePreAuthenticationProvider.php
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/98/338298/1

diff --git a/includes/auth/ThrottlePreAuthenticationProvider.php 
b/includes/auth/ThrottlePreAuthenticationProvider.php
index 3f6a47d..ae0bc6b 100644
--- a/includes/auth/ThrottlePreAuthenticationProvider.php
+++ b/includes/auth/ThrottlePreAuthenticationProvider.php
@@ -167,7 +167,9 @@
 
                $data = $this->manager->getAuthenticationSessionData( 
'LoginThrottle' );
                if ( !$data ) {
-                       $this->logger->error( 'throttler data not found for 
{user}', [ 'user' => $user->getName() ] );
+                       // this can occur when login is happening via 
AuthenticationRequest::$loginRequest
+                       // so testForAuthentication is skipped
+                       $this->logger->info( 'throttler data not found for 
{user}', [ 'user' => $user->getName() ] );
                        return;
                }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/338298
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I049c2d6da4720341ef2a380879ac19aff444b1d0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: GergÅ‘ Tisza <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to