Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

add_context silently prevents logs from appearing #353

Open
dzfranklin opened this issue Jun 21, 2020 · 0 comments
Open

add_context silently prevents logs from appearing #353

dzfranklin opened this issue Jun 21, 2020 · 0 comments

Comments

@dzfranklin
Copy link

dzfranklin commented Jun 21, 2020

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: "paul@bunyan.com"})
  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 daniel@danielzfranklin.org

My dependency versions

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant