From 9162f714e0dd05ed7a425bbf75c6a6b8aa21a9df Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 11 Apr 2019 05:26:37 -0400 Subject: [PATCH] Add uri to missing session data logging context in Session handlers --- src/Core/Session/CacheSessionHandler.php | 4 +++- src/Core/Session/DatabaseSessionHandler.php | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Core/Session/CacheSessionHandler.php b/src/Core/Session/CacheSessionHandler.php index c0a5896f42..6a1b32bfb1 100644 --- a/src/Core/Session/CacheSessionHandler.php +++ b/src/Core/Session/CacheSessionHandler.php @@ -31,7 +31,9 @@ class CacheSessionHandler extends BaseObject implements SessionHandlerInterface Session::$exists = true; return $data; } - Logger::log("no data for session $session_id", Logger::TRACE); + + Logger::notice('no data for session', ['session_id' => $session_id, 'uri' => $_SERVER['REQUEST_URI']]); + return ''; } diff --git a/src/Core/Session/DatabaseSessionHandler.php b/src/Core/Session/DatabaseSessionHandler.php index 9bb1180ec1..e3e95f9ed1 100644 --- a/src/Core/Session/DatabaseSessionHandler.php +++ b/src/Core/Session/DatabaseSessionHandler.php @@ -31,7 +31,8 @@ class DatabaseSessionHandler extends BaseObject implements SessionHandlerInterfa Session::$exists = true; return $session['data']; } - Logger::log("no data for session $session_id", Logger::TRACE); + + Logger::notice('no data for session', ['session_id' => $session_id, 'uri' => $_SERVER['REQUEST_URI']]); return ''; }