Skip to content

Commit

Permalink
avoid triggering background threads when datadog tracer is enabled an…
Browse files Browse the repository at this point in the history
…d docker fails in dev environment
  • Loading branch information
grosser committed Sep 27, 2018
1 parent 45d2754 commit 5be7c8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/initializers/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
end
rescue
warn "Unable to verify local docker!"
ErrorNotifier.notify($!, sync: true) # sync to avoid background threads breaking boot_check.rb thread checker
# errors and hooks they trigger cause background threads, that would break boot_check.rb thread checker
ErrorNotifier.notify($!) unless Rails.env.development?
end
end

0 comments on commit 5be7c8d

Please sign in to comment.