Add a default debug log handler. Update to treatment intents helper.