log the serialized text on assertion failure