proxy: add debug output to explain which protocol is being attempted