support debug logging in curl format by passing curldebug=True