From ee7cc3e24c7d375028ac9a10f5f3ea75f580f5bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerg=C5=91=20Tisza?= Date: Thu, 16 Feb 2017 16:49:57 -0800 Subject: [PATCH] Demote "Unverified user provided and no metadata to auth it" log message to info Bug: T158367 Change-Id: Ic9a949204d9d4b6d154e5a8d31f6c8501043c657 --- includes/session/SessionManager.php | 3 ++- tests/phpunit/includes/session/SessionManagerTest.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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() ); -- 2.20.1