Comments (11)
@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.
Changing your extra_applications line to
extra_applications: [:lager, :logger, :amqp]
should be enough to get rid of the error message.
from amqp.
Added the information to README. Thanks guys!
from amqp.
I noted it here. But, yes, if anyone knows better solution please share it with us here.
from amqp.
@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.
@pma sounds like a good idea to me 👍
from amqp.
@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.
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.
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.
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.
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)
- Application.Connection has a missing case clause on line 113 HOT 1
- where to find documentation HOT 3
- AMQP.Basic.get/3 option no_ack: true not working HOT 2
- Enabling transactional mode for channels? HOT 1
- FunctionClauseError no function clause matching in AMQP.Connection.open/1
- Support amqp_client 3.9.1
- unable to compile: cannot find or invoke local basic_credit_drained/0 inside match HOT 2
- unexpected_delivery_and_no_default_consumer and abandoned consumers HOT 3
- Are streams supported? HOT 3
- Unhandeled Genserver event HOT 1
- Support for streams HOT 1
- How would one approach having tests alongside this library? HOT 2
- There should be some guide on how we could write proper unit tests for this HOT 1
- No feedback when RabbitMQ is unreachable HOT 1
- AMQP issue crashes GenServer irrespective of multiple error handlers. HOT 1
- websocket support HOT 3
- OTP 26 HOT 1
- Issue compiling with Elixir 1.15 (ssl_verify_fun)
- AMQP.Connection doesn't pick the default SSL configuration HOT 1
- Why aren't channels closed when no longer needed? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amqp.