silverstripe-labs/silverstripe-raygun — pull request #9 by chillu (2014-06-02 23:54:36+00:00)
Title: Moved session user ID to write() call

More accurate reading (e.g. for errors on Security/LoginForm POST requests),
but also avoids cases where DB::getConn() is used before its initialized.
That's the case when a user has "Remmber me" set, in which case
Member::currentUserID() will trigger a Convert::raw2sql() call that
relies on a valid database object to perform its escaping.