LibPQ.jl icon indicating copy to clipboard operation
LibPQ.jl copied to clipboard

documentation or more tools for dealing with logger output

Open ExpandingMan opened this issue 7 years ago • 3 comments

Currently if you upload an entire table with Data.stream! it spits out a number of "info" statements equal to the number of rows. It would be nice if this could be mitigated somehow. Glancing through the code, it looks like there may already be a nice way of doing this, but without documentation I'll have to dig through it a good deal more to figure out how.

Is this indeed something that's already supported?

ExpandingMan avatar Sep 04 '18 20:09 ExpandingMan

You could do this:

using Memento
setlevel!(getlogger(LibPQ), "warn")

but I've already thought that those messages aren't particularly useful. I will set them to debug-level fairly soon unless you would like to submit a PR to do so.

iamed2 avatar Sep 04 '18 20:09 iamed2

Thanks!

To be honest with you I have a pretty hard time determining where those are emitted from, is it here?

ExpandingMan avatar Sep 05 '18 14:09 ExpandingMan

Exactly right, yes

iamed2 avatar Sep 05 '18 14:09 iamed2