logging connection problems