Log the changeMagicPowerBy function