DC/Melanie | #4142 | conditional logging of softdeleted subjects