Skip to content

Instantly share code, notes, and snippets.

@itsderek23
Created April 6, 2017 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itsderek23/03c29bd3077b6e17a43f5233221eb8b3 to your computer and use it in GitHub Desktop.
Save itsderek23/03c29bd3077b6e17a43f5233221eb8b3 to your computer and use it in GitHub Desktop.
defmodule Ecto.LogTrace do
require Logger
def trace(entry) do
Process.put(:ecto_log_entry, entry)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment