Demote "Unverified user provided and no metadata to auth it" log message to info
authorGergő Tisza <tgr.huwiki@gmail.com>
Fri, 17 Feb 2017 00:49:57 +0000 (16:49 -0800)
committerGergő Tisza <gtisza@wikimedia.org>
Fri, 17 Feb 2017 01:00:39 +0000 (01:00 +0000)
Bug: T158367
Change-Id: Ic9a949204d9d4b6d154e5a8d31f6c8501043c657

includes/session/SessionManager.php
tests/phpunit/includes/session/SessionManagerTest.php

index 0041450..7cc8509 100644 (file)
@@ -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,
index 50394f4..48a72d3 100644 (file)
@@ -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() );