How to pretty print conn content?

前端 未结 4 1457
天涯浪人
天涯浪人 2021-02-12 20:43

I tried the following

def index(conn, _params) do
    Logger.debug conn
     ......

But I get

protocol String.Chars not impleme         


        
4条回答
  •  我在风中等你
    2021-02-12 21:26

    Use inspect conn, pretty: true

    ... or:

    inspect conn, pretty: true, limit: 30000

    ... since Conn structures are pretty big.

提交回复
热议问题