Log messages at the various points where mod_deflate returns APR_EGENERAL. Try to use level warning if the client sent invalid data and level error if something went wrong on our side.