parent
f466566505
commit
8395cf71b4
1 changed files with 9 additions and 0 deletions
|
|
@ -2,6 +2,9 @@ package main
|
|||
|
||||
import (
|
||||
"context"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"net/http"
|
||||
_ "net/http/pprof"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
|
@ -18,6 +21,12 @@ func main() {
|
|||
|
||||
logging.LogSetup(c.LogLevel)
|
||||
|
||||
if c.Metrics.GinMode != "release" {
|
||||
go func() {
|
||||
log.Println(http.ListenAndServe("localhost:6060", nil))
|
||||
}()
|
||||
}
|
||||
|
||||
appl := app.New(c)
|
||||
|
||||
appl.Run(ctx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue