ami: log ami id after registration