acu40259 simplify audit logging code for debug mode