Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An issue with conform.new #157

Open
ashneyderman-tcb opened this issue Aug 2, 2018 · 0 comments
Open

An issue with conform.new #157

ashneyderman-tcb opened this issue Aug 2, 2018 · 0 comments

Comments

@ashneyderman-tcb
Copy link

I have config like this in config/config.exs:

config :logger, backends: [{ Airbrake.LoggerBackend, :error }, :console]

when I run

mix conform.new

I get the following

[
  extends: [],
  import: [],
  mappings: [
    "logger.backends": [
      commented: false,
      datatype: [
        list: [
          {:atom, :atom},
          :atom
        ]
      ],
      default: [
        {:"Airbrake.LoggerBackend", :error},
        :console
      ],
      doc: "Provide documentation for logger.backends here.",
      hidden: false,
      to: "logger.backends"
    ]
  ],
  transforms: [],
  validators: []
]

on startup this results in sys.config having this entry:

 {logger,
     [{backends,[{'Airbrake.LoggerBackend',error},console]}]}

which is obviously incorrect. It has to be 'Elixir.Airbrake.LoggerBackend'. So on startup this fails.

has anyone seen this problem? Is there a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant