add more inernal logging points for core components

This commit is contained in:
John
2020-02-24 21:09:19 +08:00
parent c70bc7c96a
commit 42fd583bfd
21 changed files with 83 additions and 44 deletions

View File

@ -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
}

View File

@ -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
}