This randomized controlled trial will compare the effects of intraoperative inhalational anesthesia versus intravenous anesthesia on postoperative lung injury in septic patients undergoing surgery. The primary goal is to determine if the choice of anesthetic technique influences the incidence or severity of this complication. Participants will be randomly assigned to one of the two anesthetic regimens during surgery. They will receive daily in-hospital assessments for lung injury and other outcomes and will be followed for clinical outcomes until 90 days after the procedure.