Closed Valian closed 2 years ago
Hi @Valian What is the type of "token" column?
In order to print invalid strings, we may try to encode them to base64 and decode in SQL, so the logged snippet will look like
u0."token" = DECODE('9uU9cwJsgCFmkGY3fe2OKNnh6k+GU1Ve2g83Jic=', 'BASE64')
@fuelen it's :binary
, and in PostgreSQL bytea
. It's a standard token schema generated by mix phx.gen.auth, and token itself is generated by :crypto.strong_rand_bytes
. Displaying it in base64 sounds like a good, copy-pastable idea.
I have a working draft, will publish a fix today later
@dougw-bc @Valian fixed in v0.1.4
:heart: :green_heart: :yellow_heart: :orange_heart:
Hi @fuelen, thanks for a very useful library!
I encountered a bug that causes an exception when logging a query. This is what appears in the console.
I added additional check to get params forwarded to
telemetry_handler
. Here they are:Do you have an idea why it happens? Currently, this makes it impossible to use the library for me.