🔧 Use already defined logger in HTTP server

This commit is contained in:
Maxim Lebedev 2023-11-08 02:33:02 +06:00
parent 285aa799e6
commit 70b0906054
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ func main() {
Handler: http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
fmt.Fprintln(w, "hello, world!")
}),
ErrorLog: logger,
}
done := make(chan os.Signal, 1)