Add uri to missing session data logging context in Session handlers
This commit is contained in:
parent
6a2c0b3cc7
commit
9162f714e0
2 changed files with 5 additions and 2 deletions
|
@ -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 '';
|
||||
}
|
||||
|
||||
|
|
|
@ -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 '';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue