writerfilter: fix build with DEBUG_FACTORY defined and enable when dbglevel==2

Change-Id: Ie56458a0f8752c21470e166735fd495c194f06ba