added logging when connecting to a queue