Fixed bugsnag logging