Skip to content

An issue with conform.new #157

@ashneyderman-tcb

Description

@ashneyderman-tcb

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions