Adding debug logging to help diagnose trusted host authentication issues