From: Gergő Tisza Date: Fri, 17 Feb 2017 00:49:57 +0000 (-0800) Subject: Demote "Unverified user provided and no metadata to auth it" log message to info X-Git-Tag: 1.31.0-rc.0~4069^2 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=ee7cc3e24c7d375028ac9a10f5f3ea75f580f5bc;p=lhc%2Fweb%2Fwiklou.git Demote "Unverified user provided and no metadata to auth it" log message to info Bug: T158367 Change-Id: Ic9a949204d9d4b6d154e5a8d31f6c8501043c657 --- diff --git a/includes/session/SessionManager.php b/includes/session/SessionManager.php index 0041450f86..7cc8509486 100644 --- a/includes/session/SessionManager.php +++ b/includes/session/SessionManager.php @@ -773,7 +773,8 @@ final class SessionManager implements SessionManagerInterface { return $failHandler(); } } elseif ( !$info->getUserInfo()->isVerified() ) { - $this->logger->warning( + // probably just a session timeout + $this->logger->info( 'Session "{session}": Unverified user provided and no metadata to auth it', [ 'session' => $info, diff --git a/tests/phpunit/includes/session/SessionManagerTest.php b/tests/phpunit/includes/session/SessionManagerTest.php index 50394f4ffb..48a72d3415 100644 --- a/tests/phpunit/includes/session/SessionManagerTest.php +++ b/tests/phpunit/includes/session/SessionManagerTest.php @@ -1004,7 +1004,7 @@ class SessionManagerTest extends MediaWikiTestCase { $this->assertFalse( $loadSessionInfoFromStore( $info ) ); $this->assertSame( [ [ - LogLevel::WARNING, + LogLevel::INFO, 'Session "{session}": Unverified user provided and no metadata to auth it', ] ], $logger->getBuffer() );