faa4893624da2f9e048197ce41a5e339485e8d01 — Christopher Vollick 1 year, 4 months ago 3b9e2eb
Setup Sentry

I thought the gem did this automatically if I wanted the default config,
but apparently not!

So this requires the SENTRY_DSN env-var to be set, and also in practice
requires SSL_CERT_DIR=/etc/ssl/certs if you don't have the certs
installed in guix as well.

Then we set the worker threads to 0 so it sends synchronously, since
otherwise we're about to quit and it'll just get enqueued and never
1 files changed, 4 insertions(+), 0 deletions(-)

M bin/process_interac_email
M bin/process_interac_email => bin/process_interac_email +4 -0
@@ 35,6 35,10 @@ CONFIG =
	.new(safe: Dhall::Coder::JSON_LIKE + [Symbol, Proc])
	.load(ARGV.shift, transform_keys: :to_sym)

Sentry.init do |config|
	config.background_worker_threads = 0

pubsub = BlatherNotify::PubSub::Address.new(**CONFIG[:pubsub])

m = Mail.new(ARGF.read)