Skip to content

Commit a09afe2

Browse files
committed
Fixed #798
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent ea1c7c5 commit a09afe2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

echo.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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"
@@ -69,7 +68,6 @@ type (
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

0 commit comments

Comments
 (0)