Skip to content

Commit 2d3ab26

Browse files
authored
feat: only allow for insights to be enabled when public (#642)
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.
1 parent 41daa93 commit 2d3ab26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/honeybadger/config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def load_plugin?(name)
289289
end
290290

291291
def insights_enabled?
292-
!!self[:'insights.enabled']
292+
public? && !!self[:'insights.enabled']
293293
end
294294

295295
def cluster_collection?(name)

0 commit comments

Comments
 (0)