From: Hypolite Petovan Date: Thu, 11 Apr 2019 09:26:37 +0000 (-0400) Subject: Add uri to missing session data logging context in Session handlers X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9162f714e0dd05ed7a425bbf75c6a6b8aa21a9df;p=friendica.git Add uri to missing session data logging context in Session handlers --- 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 ''; }