Enable http server logs to print handler crash

This commit is contained in:
Anis Elleuch 2021-10-27 23:19:50 +02:00
parent bd4ddccd20
commit ddcfe03b04

View file

@ -23,7 +23,6 @@ import (
"errors"
"fmt"
"io"
"log"
"math/rand"
"net"
"os"
@ -515,8 +514,6 @@ func serverMain(ctx *cli.Context) {
httpServer.BaseContext = func(listener net.Listener) context.Context {
return GlobalContext
}
// Turn-off random logging by Go internally
httpServer.ErrorLog = log.New(&nullWriter{}, "", 0)
go func() {
globalHTTPServerErrorCh <- httpServer.Start(GlobalContext)
}()