ex_audit icon indicating copy to clipboard operation
ex_audit copied to clipboard

Conflicting behaviors using ExAudit.Repo

Open spenavajr opened this issue 3 years ago • 1 comments
trafficstars

Using ExAudit.Repo properly after usage of Ecto.Repo:

defmodule PINWaste.Repo do
  use Ecto.Repo,
    otp_app: :pin_waste,
    adapter: Ecto.Adapters.Postgres

  use ExAudit.Repo

This causes the following warning: warning: conflicting behaviours found. function default_options/1 is required by Ecto.Repo and ExAudit.Repo

spenavajr avatar Sep 09 '22 18:09 spenavajr

@narrowtux any clue here? figured tagging somebody would increase visibility on this.

spenavajr avatar Sep 09 '22 20:09 spenavajr

This is beacue Ecto.Repo it self requires such callback as well.

fix is in PR (just created): https://github.com/ZennerIoT/ex_audit/pull/92/commits/d229bc6a59db351676e00c678c3a99ed6896a40b

revati avatar Oct 03 '22 14:10 revati

@revati 🙏 any update on getting that PR in? I am seeing this warning as well.

ambuznego avatar Oct 21 '22 14:10 ambuznego