Straight local anesthesia for hernia surgery is not 100% effective and reliable. This it is used in combination with conscious sedation or general anesthesia. General anesthesia in combination with local anesthesia is the safest form of hernia surgery anesthesia for most patients.