]> git.mxchange.org Git - friendica.git/commitdiff
Add uri to missing session data logging context in Session handlers
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 11 Apr 2019 09:26:37 +0000 (05:26 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 11 Apr 2019 09:26:37 +0000 (05:26 -0400)
src/Core/Session/CacheSessionHandler.php
src/Core/Session/DatabaseSessionHandler.php

index c0a5896f4247a0f90330496df9c0f38ad305b9ca..6a1b32bfb1686c84b6e0d1954b4d3808cc273662 100644 (file)
@@ -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 '';
        }
 
index 9bb1180ec1956aa6d1d8d2127c52e1464f41aeba..e3e95f9ed12a5d07faec60cbed65f834a1be827e 100644 (file)
@@ -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 '';
        }