cleanup logging messages