cleaning up the logging