Improve logging of registerScope

Issue: SPR-12519