Only log connection errors when debugging - reduce log noise