Clean logging messages