writerfilter: Hide more debug-only stuff behind the DEBUG_DOMAINMAPPER.

Change-Id: I0e86cafab97f0adad516660c6fdf40e13d114bf2