The personal finance app for everyone (by everyone)
Ruby
Enable sending logs to Sentry
Juan José Mata45c4bc595b91
diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rbindex d964a09b85..5d27918cd9 100644--- a/config/initializers/sentry.rb+++ b/config/initializers/sentry.rb@@ -5,6 +5,11 @@ if ENV["SENTRY_DSN"].present?config.breadcrumbs_logger = [ :active_support_logger, :http_logger ]config.enabled_environments = %w[production]+ # Enable sending logs to Sentry+ config.enable_logs = true+ # Patch Ruby logger to forward logs+ config.enabled_patches = [ :logger ]+# Set traces_sample_rate to 1.0 to capture 100%# of transactions for performance monitoring.# We recommend adjusting this value in production.