logs
Some checks failed
CI/CD Pipeline / build (push) Has been cancelled

This commit is contained in:
2026-03-09 15:25:18 -06:00
parent 76c4098a19
commit 9a0203dac4
5 changed files with 54 additions and 8 deletions

View File

@@ -0,0 +1,19 @@
defmodule ElixirAiWeb.Plugs.HealthCheckLogger do
@moduledoc """
Plug that marks health check requests for filtering.
"""
@behaviour Plug
require Logger
@impl true
def init(opts), do: opts
@impl true
def call(%Plug.Conn{path_info: ["health"]} = conn, _opts) do
# Mark this as a health check for logger filtering
Logger.metadata(health_check: true)
conn
end
def call(conn, _opts), do: conn
end