Fixed error logging via bugsnag