Skip to content

Commit 94844bd

Browse files
authored
fix: disable insights when loading rails console (#580)
1 parent 8b6701f commit 94844bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/honeybadger/init/rails.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ class Railtie < ::Rails::Railtie
3232
config.after_initialize do
3333
Honeybadger.load_plugins!
3434
end
35+
36+
console do
37+
Honeybadger::Agent.instance.config[:'insights.enabled'] = false unless Honeybadger::Agent.instance.config.env.has_key?(:'insights.enabled')
38+
end
3539
end
3640
end
3741
end

0 commit comments

Comments
 (0)