Giter Club home page Giter Club logo

Comments (11)

Fruetel avatar Fruetel commented on July 16, 2024 2

@ono Mentioning the lager stuff in the READMe might be a good idea. It's the first place I'm looking into when I encounter any problems. I wasn't aware you mentioned the new dependencies in the wiki.

from amqp.

Fruetel avatar Fruetel commented on July 16, 2024 2

@hbobenicio

Changing your extra_applications line to

extra_applications: [:lager, :logger, :amqp]

should be enough to get rid of the error message.

from amqp.

ono avatar ono commented on July 16, 2024 1

Added the information to README. Thanks guys!

from amqp.

ono avatar ono commented on July 16, 2024

I noted it here. But, yes, if anyone knows better solution please share it with us here.

from amqp.

pma avatar pma commented on July 16, 2024

@ono @Fruetel What do you think of adding lager_logger (https://hex.pm/packages/lager_logger) as a new dependency?

An additional step of including the extra config to the main application's config.exs (https://github.com/PSPDFKit-labs/lager_logger/blob/master/config/config.exs) will still be required, I think (needs to be tested).

from amqp.

ono avatar ono commented on July 16, 2024

@pma sounds like a good idea to me 👍

from amqp.

Fruetel avatar Fruetel commented on July 16, 2024

@pma Thanks for the quick response! The fix you suggest is certainly better than starting lager in our main applications. It is still a bit annoying, since we need to change this in a lot of applications, but I don't know a better solution either.

from amqp.

ono avatar ono commented on July 16, 2024

However there might not be much point to include it as amqp's dependency because you still have to configure larger. Maybe mentioning it in our README is the best we can do?

from amqp.

pma avatar pma commented on July 16, 2024

You are right. The main app needs to add stuff to the config.exs, otherwise lager_logger doesn't change the described behaviour.
Compared to what is already mentioned in the README the only benefit would be a single log output for both Elixir and Erlang.

from amqp.

hbobenicio avatar hbobenicio commented on July 16, 2024

So how we are about this?
Sorry for the noobie question here... how can I work around this? I think I didn't get it... my fresh new HelloWorld example gave me this same error log.

Today this is how I'm starting my application:

  def application do
    [
      # Starts the Supervisor with the HelloWorldConsumer Worker
      mod: {HelloRabbit, []},

      extra_applications: [:logger, :amqp]
    ]
  end

Am I'm initializing it wrong?

from amqp.

hbobenicio avatar hbobenicio commented on July 16, 2024

It worked! Thanks!
We should create a section in the README.md about it, right?
If this is the final solution and this approach doesn't contain any potencial problems, we could close this issue when the documentation section were written.

from amqp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.