Core/Spells: move debug log into debug mode