add log when failed to get keypair