getsentry/raven-js — pull request #229 by zaizhuang (2014-07-16 18:27:17+00:00)
Title: 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.