Skip to content

Commit

Permalink
feat: only allow for insights to be enabled when public
Browse files Browse the repository at this point in the history
This means that the gem must be able to report data as well requiring
the environment to not be a `development_environment`. This should
prevent any unexpected Insights related code to run in dev or test
environments.
  • Loading branch information
roelbondoc committed Nov 14, 2024
1 parent 41daa93 commit 0c80575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/honeybadger/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def load_plugin?(name)
end

def insights_enabled?
!!self[:'insights.enabled']
public? && !!self[:'insights.enabled']
end

def cluster_collection?(name)
Expand Down

0 comments on commit 0c80575

Please sign in to comment.