logging cleanup