connection: add debug logs