feature: add debug logging to connection.