I tried the following
def index(conn, _params) do
Logger.debug conn
......
But I get
protocol String.Chars not implemented for %Plug.Conn
I even tried Apex but that didn't worked either.
Use inspect conn, pretty: true
... or:
inspect conn, pretty: true, limit: 30000
... since Conn
structures are pretty big.
You should be able to use Kernel.inspect/2 to pretty print conn
:
Logger.debug inspect(conn)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With