Log before capturing error with Raven

in case the problem is with Raven