File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ import (
5050 "sync"
5151 "time"
5252
53- "github.com/labstack/gommon/color"
5453 "github.com/labstack/gommon/log"
5554 "github.com/tylerb/graceful"
5655 "golang.org/x/crypto/acme/autocert"
6968 ReadTimeout time.Duration
7069 WriteTimeout time.Duration
7170 ShutdownTimeout time.Duration
72- Color * color.Color
7371 Logger Logger
7472 stdLogger * slog.Logger
7573 server * graceful.Server
@@ -247,7 +245,6 @@ func New() (e *Echo) {
247245 ShutdownTimeout : 15 * time .Second ,
248246 Logger : log .New ("echo" ),
249247 maxParam : new (int ),
250- Color : color .New (),
251248 }
252249 e .HTTPErrorHandler = e .DefaultHTTPErrorHandler
253250 e .Binder = & DefaultBinder {}
@@ -575,11 +572,11 @@ func (e *Echo) StartServer(s *http.Server) error {
575572 }
576573 if s .TLSConfig == nil {
577574 e .server = gs
578- e .Color .Printf (" ⇛ http server started on %s\n " , color . Green ( s .Addr ) )
575+ e .Logger .Printf ("http server started on %s" , s .Addr )
579576 return gs .ListenAndServe ()
580577 }
581578 e .tlsServer = gs
582- e .Color .Printf (" ⇛ https server started on %s\n " , color . Green ( s .Addr ) )
579+ e .Logger .Printf (" ⇛ https server started on %s" , s .Addr )
583580 return gs .ListenAndServeTLSConfig (s .TLSConfig )
584581}
585582
You can’t perform that action at this time.
0 commit comments