1
1
Fork 0

Add uri to missing session data logging context in Session handlers

This commit is contained in:
Hypolite Petovan 2019-04-11 05:26:37 -04:00
parent 6a2c0b3cc7
commit 9162f714e0
2 changed files with 5 additions and 2 deletions

View 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 '';
}

View 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 '';
}