mirror of
https://gitee.com/johng/gf
synced 2026-07-08 22:40:30 +08:00
add more inernal logging points for core components
This commit is contained in:
@ -11,8 +11,6 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gogf/gf/debug/gdebug"
|
||||
"github.com/gogf/gf/internal/intlog"
|
||||
"github.com/gogf/gf/util/gutil"
|
||||
"net/http"
|
||||
"os"
|
||||
"reflect"
|
||||
@ -340,10 +338,6 @@ func (s *Server) Start() error {
|
||||
}
|
||||
})
|
||||
}
|
||||
if intlog.IsGFDebug() {
|
||||
intlog.Print("server configuration:")
|
||||
gutil.Dump(s.config)
|
||||
}
|
||||
s.dumpRouterMap()
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -9,6 +9,7 @@ package ghttp
|
||||
import (
|
||||
"crypto/tls"
|
||||
"fmt"
|
||||
"github.com/gogf/gf/internal/intlog"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"time"
|
||||
@ -151,6 +152,8 @@ func (s *Server) SetConfig(c ServerConfig) error {
|
||||
s.EnableHTTPS(c.HTTPSCertPath, c.HTTPSKeyPath)
|
||||
}
|
||||
SetGraceful(c.Graceful)
|
||||
|
||||
intlog.Printf("SetConfig: %+v", s.config)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user