clean up debug logging in the agent