timber-elixir icon indicating copy to clipboard operation
timber-elixir copied to clipboard

add_context silently prevents logs from appearing

Open dzfranklin opened this issue 5 years ago • 0 comments

When I attach any context to a process no logs appear from that process in the timber dashboard. For example, I took the following context from the examples and put it in Application.start for a Phoenix app.

def start(_type, _args) do
  Timber.add_context(user: %{id: "d23f6h7ffx", email: "[email protected]"})
  Logger.info("Starting application")
end

I have the application configured to log to both Timber and the default console logger. The log "Starting application" appears in the console, but not on the timber.io dashboard. When I remove the call to Timber.add_context "Starting application" appears on the timber.io dashboard.

My timber account is under the username [email protected]

My dependency versions

dzfranklin avatar Jun 21 '20 13:06 dzfranklin