replace ioutil
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
18db59ad2d
commit
241059f56b
|
@ -2,7 +2,6 @@ package gounicorn
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"os"
|
||||
"os/exec"
|
||||
|
@ -142,7 +141,7 @@ func (g *GoUnicorn) Restart() {
|
|||
return
|
||||
}
|
||||
|
||||
newPidB, err := ioutil.ReadFile(newPidFile)
|
||||
newPidB, err := os.ReadFile(newPidFile)
|
||||
if err != nil {
|
||||
g.log.WithError(err).Warning("failed to find the new gunicorn process, aborting")
|
||||
return
|
||||
|
|
Reference in New Issue