Commit 8b7f810b authored by rithu john's avatar rithu john

cmd/dex: modify error messages to info messages.

parent 91cc94dd
...@@ -181,19 +181,19 @@ func serve(cmd *cobra.Command, args []string) error { ...@@ -181,19 +181,19 @@ func serve(cmd *cobra.Command, args []string) error {
} }
errc := make(chan error, 3) errc := make(chan error, 3)
if c.Web.HTTP != "" { if c.Web.HTTP != "" {
logger.Errorf("listening (http) on %s", c.Web.HTTP) logger.Infof("listening (http) on %s", c.Web.HTTP)
go func() { go func() {
errc <- http.ListenAndServe(c.Web.HTTP, serv) errc <- http.ListenAndServe(c.Web.HTTP, serv)
}() }()
} }
if c.Web.HTTPS != "" { if c.Web.HTTPS != "" {
logger.Errorf("listening (https) on %s", c.Web.HTTPS) logger.Infof("listening (https) on %s", c.Web.HTTPS)
go func() { go func() {
errc <- http.ListenAndServeTLS(c.Web.HTTPS, c.Web.TLSCert, c.Web.TLSKey, serv) errc <- http.ListenAndServeTLS(c.Web.HTTPS, c.Web.TLSCert, c.Web.TLSKey, serv)
}() }()
} }
if c.GRPC.Addr != "" { if c.GRPC.Addr != "" {
logger.Errorf("listening (grpc) on %s", c.GRPC.Addr) logger.Infof("listening (grpc) on %s", c.GRPC.Addr)
go func() { go func() {
errc <- func() error { errc <- func() error {
list, err := net.Listen("tcp", c.GRPC.Addr) list, err := net.Listen("tcp", c.GRPC.Addr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment