After using this, realized that I needed logging in the failure backend as well. Extracted the formatting to one place, though the actual log call needed to be slightly different - see below