[12416] Improve debug log output for learning/unlearning spells/skills. Thanks to NeatElves for pointing