cleanup of debug log