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

Warnings when compiling on elixir 1.12.1 #71

Open
martinos opened this issue Jun 29, 2021 · 0 comments
Open

Warnings when compiling on elixir 1.12.1 #71

martinos opened this issue Jun 29, 2021 · 0 comments

Comments

@martinos
Copy link

When I compile my application I get the following error when compiling the logger_file_backend application.

==> logger_file_backend
Compiling 1 file (.ex)
warning: Logger.compare_levels/2 defined in application :logger is used by the current application but the current application does not depend on :logger. To fix this, you must do one of:

  1. If :logger is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs

  2. If :logger is a dependency, make sure it is listed under "def deps" in your mix.exs

  3. In case you don't want to add a requirement to :logger, you may optionally skip this warning by adding [xref: [exclude: [Logger]]] to your "def project" in mix.exs

  lib/logger_file_backend.ex:36: LoggerFileBackend.handle_event/2

I think that the library should have :logger added to the extra_applications options in order to fix this.

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