gin.DefaultWriter = io.Discard
This commit is contained in:
parent
e7ae12b939
commit
65d34e17f2
|
|
@ -2,6 +2,7 @@ package gin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"io"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
@ -37,6 +38,7 @@ func Service() {
|
||||||
sslKey = os.Getenv("GIN_SSL_KEY")
|
sslKey = os.Getenv("GIN_SSL_KEY")
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
gin.DefaultWriter = io.Discard
|
||||||
router := gin.New()
|
router := gin.New()
|
||||||
routerSetup(router)
|
routerSetup(router)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue