Please change this debug stuff to the appropriate dnet logging primitives in other places too