HH-36340 remove debug=profile and refactor debug parameters
HH-36340 switch debug log handler to bulk mode
HH-36340 fix send_error debug, apply debug xsl even if apply_xsl=False
Merge remote branch 'origin/HH-36340' into release-candidate
release 2.17.24