Skip to content

Commit 1f5ee29

Browse files
author
Joshua Wood
committedFeb 23, 2013
Document config.development_environments
1 parent ef6141d commit 1f5ee29

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
 

‎README.md

+21
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,27 @@ this rake task (from RAILS_ROOT):
128128
If everything is configured properly, that task will send a notice to Honeybadger
129129
which will be visible immediately.
130130

131+
## Ignored environments
132+
133+
Please note that in development mode, Honeybadger will **not** be
134+
notified of exceptions that occur, except when running the test rake
135+
task. The following environments are ignored by default: *development*,
136+
*test*, and *cucumber*. You can modify which environments are ignored by
137+
setting the `development_environments` option in your Honeybadger
138+
initializer:
139+
140+
Honeybadger.configure do |config|
141+
...
142+
# To add an additional environment to be ignored:
143+
config.development_environments << 'staging'
144+
145+
# To override the default environments completely:
146+
config.development_environments = ['test', 'cucumber']
147+
end
148+
149+
If you choose to override the `development_environments` option for
150+
whatever reason, please make sure your test environments are ignored.
151+
131152
## Sending custom data
132153

133154
Honeybadger allows you to send custom data using `Honeybadger.context`.

0 commit comments

Comments
 (0)