This repository was archived by the owner on Dec 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
This repository was archived by the owner on Dec 8, 2020. It is now read-only.
:gen_event handler #346
Copy link
Copy link
Open
Description
Hello, so on a staging environment box, I'm getting the below in an iex console for a Phoenix application....The error message is rather cryptic, so it's unclear what is wrong. Any tips in the right direction?
iex server-xxx 2> Logger.info("Hello world")
:ok
iex server-xxx 3> :gen_event handler Timber.LoggerBackends.HTTP installed in Logger terminating
** (exit) an exception was raised:
** (ArgumentError) argument error
(stdlib) :ets.lookup_element(:hackney_config, :mod_metrics, 2)
(hackney) /root/project/deps/hackney/src/hackney_metrics.erl:27: :hackney_metrics.get_engine/0
(hackney) /root/project/deps/hackney/src/hackney_connect.erl:78: :hackney_connect.create_connection/5
(hackney) /root/project/deps/hackney/src/hackney_connect.erl:47: :hackney_connect.connect/5
(hackney) /root/project/deps/hackney/src/hackney.erl:330: :hackney.request/5
(timber) lib/timber/logger_backends/http.ex:396: Timber.LoggerBackends.HTTP.transmit_buffer/2
(timber) lib/timber/logger_backends/http.ex:211: Timber.LoggerBackends.HTTP.handle_info/2
(stdlib) gen_event.erl:577: :gen_event.server_update/4
nil
I followed the docs:
https://docs.timber.io/setup/languages/elixir
which say:
Basic Logging
Timber works with your existing Logger calls, no changes necessary:
Logger.info("Hello world")
We are getting at least some debug logs in staging for timber.io, so it seems the setup and configuration of Timber is line with what needs to be done via the docs.
Here is the timber deps in our mix.exs file for one part of our umbrella app:
{:timber, "~> 3.1.1"},
{:timber_plug, "~> 1.0"},
{:timber_phoenix, "~> 1.0"},
{:timber_ecto, "~> 2.1.0"},
{:timber_exceptions, "~> 2.1.0"},
And the timber deps in mix.exs for another app in our umbrella app:
{:timber, "~> 3.1.1"},
{:timber_ecto, "~> 2.1.0"},
If I setup my local machine with the same credentials as the staging box and to use the Timber HTTP backend, I don't get the above issue.
bobics and overture8
Metadata
Metadata
Assignees
Labels
No labels