Only log to console.error when Raven.debug is true

This allows us to use Raven in production regardless of it being configured or not, without worrying about logging unnecessary errors to the console. Useful when Raven is only configured for a certain percentage of sessions to reduce the number of errors sent to sentry. 

If debugging is required, just set Raven.debug = true.