A platform for community discussion. Free, open, simple.
DEV: Silence pitchfork `SOCK_SEQPACKET` warning on macOS (#37815)
David Taylore74c2a7fee76
diff --git a/config/pitchfork.conf.rb b/config/pitchfork.conf.rbindex 3369523995a..b416a4bc602 100644--- a/config/pitchfork.conf.rb+++ b/config/pitchfork.conf.rb@@ -147,3 +147,9 @@ after_worker_timeout do |server, worker, timeout_info|Rails.logger.error(message)end++if RUBY_PLATFORM.include?("darwin") && ENV["RAILS_ENV"] != "production"+ # macOS doesn't support the default :SOCK_SEQPACKET+ # So we override it to avoid the warning+ Pitchfork.instance_variable_set(:@socket_type, :SOCK_STREAM)+end