-
Notifications
You must be signed in to change notification settings - Fork 129
Closed
Description
I work on an alternative logger for Ecto which uses telemetry https://github.com/fuelen/ecto_dev_logger
And the issue I have currently, is that I cannot distinguish queries made by Phoenix.Ecto.CheckRepoStatus plug and by my application, so on every HTTP request I see the following logs:
[debug] QUERY OK db=0.3ms decode=1.5ms
CREATE TABLE IF NOT EXISTS "schema_migrations" ("version" bigint, "inserted_at" timestamp(0), PRIMARY KEY ("version"))
[debug] QUERY OK db=0.4ms
begin
[debug] QUERY OK db=0.3ms
LOCK TABLE "schema_migrations" IN SHARE UPDATE EXCLUSIVE MODE
[debug] QUERY OK source="schema_migrations" db=0.4ms
SELECT s0."version"::bigint FROM "schema_migrations" AS s0
[debug] QUERY OK db=0.3ms
commit
It would be great if there is something in telemetry metadata that could help me to hide such logs.
P.S: Maybe, that's an issue in ecto/ecto_sql?
Metadata
Metadata
Assignees
Labels
No labels