honeybadger-io / honeybadger-go

Send Go (golang) panics and errors to Honeybadger.
https://www.honeybadger.io/
MIT License
34 stars 15 forks source link

Add silent mode #7

Closed kostyantyn closed 8 years ago

kostyantyn commented 8 years ago

Can be used in tests, when you don't need to send errors to honeybadger

joshuap commented 8 years ago

@kostyantyn what do you think about adding something like DevEnvironments instead which would cause the client to be silent when Env is in one of the configured development environments? That would allow you to just specify an environment variable "HONEYBADGER_ENV=test" in your tests. We use that pattern in our Ruby gem.

Also, this might be a good opportunity to configure a null/development Backend rather than checking the option inside server.Notify. We could check for the config option and change the default Backend here.

joshuap commented 8 years ago

Closing this since a null backend was added in #18