diff options
author | Bryan Davis <bd808@wikimedia.org> | 2016-02-02 09:37:27 -0700 |
---|---|---|
committer | Bryan Davis <bd808@wikimedia.org> | 2016-02-06 16:18:01 -0700 |
commit | f60fd42b33ed226f999dd6b6cc1cc499a1f6b151 (patch) | |
tree | 0ff311f3430fd12e8da2c8efefc3fca094751130 /includes/session/PHPSessionHandler.php | |
parent | 97483221af464d8c028535170d7538730cbb319d (diff) | |
download | mediawikicore-f60fd42b33ed226f999dd6b6cc1cc499a1f6b151.tar.gz mediawikicore-f60fd42b33ed226f999dd6b6cc1cc499a1f6b151.zip |
Update session log messages
* Use PSR-3 templates and context where applicable
* Add log coverage for exceptional events
Bug: T125452
Change-Id: I8f96fa1c5766c739a21219abcae2dbb76de53e2a
Diffstat (limited to 'includes/session/PHPSessionHandler.php')
-rw-r--r-- | includes/session/PHPSessionHandler.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/session/PHPSessionHandler.php b/includes/session/PHPSessionHandler.php index 4dea2743374e..795e2532546a 100644 --- a/includes/session/PHPSessionHandler.php +++ b/includes/session/PHPSessionHandler.php @@ -247,8 +247,10 @@ class PHPSessionHandler { // This can happen under normal circumstances, if the session exists but is // invalid. Let's emit a log warning instead of a PHP warning. $this->logger->warning( - __METHOD__ . ": Session \"$id\" cannot be loaded, skipping write." - ); + __METHOD__ . ': Session "{session}" cannot be loaded, skipping write.', + array( + 'session' => $id, + ) ); return true; } |