clean debug logging