Some small fixes / changes to logging to fix the size of records passed to callbacks and avoid error messages in normal operation.