mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
parent
5828f5f215
commit
1302a08009
5
echo.go
5
echo.go
@ -584,8 +584,11 @@ func (e *Echo) startTLS(address string) error {
|
|||||||
func (e *Echo) StartServer(s *http.Server) (err error) {
|
func (e *Echo) StartServer(s *http.Server) (err error) {
|
||||||
// Setup
|
// Setup
|
||||||
e.colorer.SetOutput(e.Logger.Output())
|
e.colorer.SetOutput(e.Logger.Output())
|
||||||
s.Handler = e
|
|
||||||
s.ErrorLog = e.stdLogger
|
s.ErrorLog = e.stdLogger
|
||||||
|
s.Handler = e
|
||||||
|
if e.Debug {
|
||||||
|
e.Logger.SetLevel(log.DEBUG)
|
||||||
|
}
|
||||||
|
|
||||||
if s.TLSConfig == nil {
|
if s.TLSConfig == nil {
|
||||||
if e.Listener == nil {
|
if e.Listener == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user