Debug logging cleanup.