summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2021-12-27 15:41:06 +0000
committerAlex Gleason <alex@alexgleason.me>2021-12-27 15:41:06 +0000
commit6e27fc9c12be2bd4ac4287a5a775ff8862ee92c6 (patch)
tree9d6326ef9b0994f695e1e1277b2ac4cd95e58fe5 /config
parent3b8eaadb0d8fb7c2e415340ac93f78b00b7dbb5d (diff)
parent08c0f09bad040ea713893be822342867f589efbe (diff)
Merge branch 'log-slow-queries' into 'develop'
Log slow Ecto queries See merge request pleroma/pleroma!3553
Diffstat (limited to 'config')
-rw-r--r--config/config.exs9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs
index 23c41eddd..dfa73940f 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -149,6 +149,8 @@ config :pleroma, Pleroma.Web.Endpoint,
]
# Configures Elixir's Logger
+config :logger, truncate: 65536
+
config :logger, :console,
level: :debug,
format: "\n$time $metadata[$level] $message\n",
@@ -853,6 +855,13 @@ config :pleroma, ConcurrentLimiter, [
{Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy, [max_running: 5, max_waiting: 5]}
]
+config :pleroma, :telemetry,
+ slow_queries_logging: [
+ enabled: false,
+ min_duration: 500_000,
+ exclude_sources: [nil, "oban_jobs"]
+ ]
+
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"