Remove ErrorTracker
Doesn't work with recent LiveView releases, and seems to be maintained very slowly despite incoming PRs to fix the issues.
This commit is contained in:
+1
-8
@@ -12,7 +12,7 @@ config :elixir, :time_zone_database, TimeZoneInfo.TimeZoneDatabase
|
||||
config :time_zone_info, update: :daily
|
||||
|
||||
config :music_library,
|
||||
ecto_repos: [MusicLibrary.BackgroundRepo, MusicLibrary.Repo, MusicLibrary.ErrorRepo],
|
||||
ecto_repos: [MusicLibrary.BackgroundRepo, MusicLibrary.Repo],
|
||||
generators: [timestamp_type: :utc_datetime, binary_id: true]
|
||||
|
||||
config :music_library, default_timezone: "Europe/London"
|
||||
@@ -76,11 +76,6 @@ config :logger, :default_formatter,
|
||||
# Use JSON for JSON parsing in Phoenix
|
||||
config :phoenix, :json_library, JSON
|
||||
|
||||
config :error_tracker,
|
||||
repo: MusicLibrary.ErrorRepo,
|
||||
otp_app: :music_library,
|
||||
enabled: true
|
||||
|
||||
config :music_library, Oban,
|
||||
engine: Oban.Engines.Lite,
|
||||
queues: [default: 10, heavy_writes: 1, music_brainz: 1],
|
||||
@@ -94,8 +89,6 @@ config :music_library, Oban,
|
||||
]}
|
||||
]
|
||||
|
||||
config :music_library, MusicLibrary.ErrorRepo, priv: "priv/error_repo"
|
||||
|
||||
config :music_library, MusicLibrary.BackgroundRepo, priv: "priv/background_repo"
|
||||
|
||||
config :fluxon, :translate_function, &MusicLibraryWeb.CoreComponents.translate_error/1
|
||||
|
||||
@@ -8,12 +8,6 @@ config :music_library, MusicLibrary.Repo,
|
||||
stacktrace: true,
|
||||
show_sensitive_data_on_connection_error: true
|
||||
|
||||
config :music_library, MusicLibrary.ErrorRepo,
|
||||
database: Path.expand("../data/music_library_errors_dev.db", __DIR__),
|
||||
pool_size: 5,
|
||||
stacktrace: true,
|
||||
show_sensitive_data_on_connection_error: true
|
||||
|
||||
config :music_library, MusicLibrary.BackgroundRepo,
|
||||
database: Path.expand("../data/music_library_background_dev.db", __DIR__),
|
||||
pool_size: 5,
|
||||
|
||||
@@ -84,20 +84,6 @@ if config_env() == :prod do
|
||||
temp_store: :memory,
|
||||
show_sensitive_data_on_connection_error: true
|
||||
|
||||
error_database_path =
|
||||
System.get_env("ERROR_DATABASE_PATH") ||
|
||||
raise """
|
||||
environment variable ERROR_DATABASE_PATH is missing.
|
||||
For example: /etc/music_library/music_library_errors.db
|
||||
"""
|
||||
|
||||
config :music_library, MusicLibrary.ErrorRepo,
|
||||
database: error_database_path,
|
||||
# 16MB * pool_size = base memory usage
|
||||
cache_size: -8000,
|
||||
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "5"),
|
||||
show_sensitive_data_on_connection_error: true
|
||||
|
||||
background_database_path =
|
||||
System.get_env("BACKGROUND_DATABASE_PATH") ||
|
||||
raise """
|
||||
|
||||
@@ -11,11 +11,6 @@ config :music_library, MusicLibrary.Repo,
|
||||
pool_size: 32,
|
||||
pool: Ecto.Adapters.SQL.Sandbox
|
||||
|
||||
config :music_library, MusicLibrary.ErrorRepo,
|
||||
database: Path.expand("../data/music_library_errors_test.db", __DIR__),
|
||||
pool_size: 32,
|
||||
pool: Ecto.Adapters.SQL.Sandbox
|
||||
|
||||
config :music_library, MusicLibrary.BackgroundRepo,
|
||||
database: Path.expand("../data/music_library_background_test.db", __DIR__),
|
||||
pool_size: 32,
|
||||
|
||||
Reference in New Issue
Block a user