Add debugging to slave daemon