def convert_serializable(records):
 for r in records:
  r.msg = r.getMessage()
  r.args = ()

def convert_serializable ( records ) : for r in records : r . msg = r . getMessage ( ) r . args = ( )
convert logrecord serializable .