Logging cleanup.