avro serialization: added logging