Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Revert "dump buffer on invalid insert (#3613)"
Adam Rutkowski69579272d676
diff --git a/config/runtime.exs b/config/runtime.exsindex 830d459e96..986a8b09da 100644--- a/config/runtime.exs+++ b/config/runtime.exs@@ -291,8 +291,7 @@ config :plausible,super_admin_user_ids: super_admin_user_ids,is_selfhost: is_selfhost,custom_script_name: custom_script_name,- log_failed_login_attempts: log_failed_login_attempts,- persistent_cache_dir: maxmind_cache_dir+ log_failed_login_attempts: log_failed_login_attemptsconfig :plausible, :selfhost,enable_email_verification: enable_email_verification,diff --git a/lib/plausible/ingestion/write_buffer.ex b/lib/plausible/ingestion/write_buffer.exindex 1c1d7191a3..7854357fb5 100644--- a/lib/plausible/ingestion/write_buffer.ex+++ b/lib/plausible/ingestion/write_buffer.ex@@ -100,15 +100,6 @@ defmodule Plausible.Ingestion.WriteBuffer doLogger.info("Flushing #{buffer_size} byte(s) RowBinary from #{name}")IngestRepo.query!(insert_sql, [header | buffer], insert_opts)end- rescue- _ ->- path =- Path.join(- Application.get_env(:plausible, :persistent_cache_dir) || System.tmp_dir!(),- "insert_error.dump"- )-- File.write!(path, state.buffer)enddefp default_flush_interval_ms do