Move ErrorTracker to its own repo and file

Note that the SQlite adapter supports version 2 onwards.
This commit is contained in:
Claudio Ortolina
2025-01-23 10:40:36 +00:00
parent 6d64153ea8
commit eeaaf8b542
7 changed files with 35 additions and 4 deletions
+13
View File
@@ -51,6 +51,19 @@ if config_env() == :prod do
cache_size: -8000,
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "5")
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")
# The secret key base is used to sign/encrypt cookies and other secrets.
# A default value is used in config/dev.exs and config/test.exs but you
# want to use a different value for prod and you most likely don't want