spicedb icon indicating copy to clipboard operation
spicedb copied to clipboard

`time` field in pgx logs is repeated

Open josephschorr opened this issue 4 years ago • 2 comments

Right now, the time field in the pgx logs as output is repeated:

{"level":"info","module":"pgx","args":[],"commandTag":"...","sql":"begin read only","time":2.258174,"time":"2021-09-02T16:31:54Z","message":"Exec"}

Note that the produced JSON, when piped through tooling, loses one of the values

josephschorr avatar Sep 02 '21 16:09 josephschorr

in case it wasn't obvious: one is the number of milliseconds and one is the wall clock time

jakedt avatar Sep 27 '21 19:09 jakedt

@jakedt Yep, and I suspect one is being injected by the zerolog driver and one by pgx

josephschorr avatar Sep 27 '21 20:09 josephschorr