From 9fb1423d1659fcef72466abde0e0e1af016b923c Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Mon, 26 Oct 2026 19:51:44 -0500 Subject: pleroma/otp: always migrate before starting; quiet the default logger migrate db now always runs (gated only on the binary existing, not on whether this run freshly installed the shared release) and runs before the service starts, not after. installed_version only reflects whether THIS run upgraded the shared /opt/pleroma binary, not whether THIS instance's own database is migrated against it; gating migrate on that let every instance but whichever one's play ran first after an upgrade skip its own migration and crash-loop on "Unapplied Migrations detected" (hit this for real on nth_io and haskell_social after a 2.11.0 upgrade). pleroma_ctl migrate is a no-op when nothing's pending, so changed_when false keeps normal runs from reporting changed every time. Cap the default console logger handler (journald) at :warning: it had no level set, so info-level noise like telemetry attach notices and every SQL debug query were flooding the journal. ex_syslogger's own level was already set separately; this only affects the handler nothing else was touching. --- pleroma/otp/templates/config.exs.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pleroma/otp/templates/config.exs.j2') diff --git a/pleroma/otp/templates/config.exs.j2 b/pleroma/otp/templates/config.exs.j2 index 6f09ec8..f726b2a 100644 --- a/pleroma/otp/templates/config.exs.j2 +++ b/pleroma/otp/templates/config.exs.j2 @@ -71,3 +71,11 @@ config :logger, config :logger, :ex_syslogger, level: :critical + +# The above only sets the ex_syslogger backend's level. Logger's separate +# default console handler (stdout, captured by journald) has no level set +# and prints everything: info-level telemetry attach notices, every SQL +# debug query, etc. This caps it at warnings and errors without losing the +# crash/error output journalctl is actually useful for. +config :logger, + level: :warning -- cgit v1.2.3