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

(based on commit [12412] - d7fa0ee)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>