Hello Pavel,
I think so some redundant messages can be reduced - see function printConnInfo - attached patch
I thought about doing like that, but I made the debatable choice to keep the existing redundancy because it minimizes diffs and having a print-to-stdout special function does not look like a very clean API, as it cannot really be used by non CLI clients.
-- Fabien.