cleanup debug logging