Removed doubled log from appcontext package
This commit is contained in:
parent
4672299afb
commit
a9e42d7248
@ -1,7 +1,6 @@
|
|||||||
package appcontext
|
package appcontext
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
|
||||||
// stdlib
|
// stdlib
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"net/http"
|
"net/http"
|
||||||
@ -70,5 +69,5 @@ func (c *Context) StartHTTPListener() {
|
|||||||
|
|
||||||
c.Log.Info("HTTP server started at http://" + c.Cfg.HTTPListener.Host + ":" + c.Cfg.HTTPListener.Port)
|
c.Log.Info("HTTP server started at http://" + c.Cfg.HTTPListener.Host + ":" + c.Cfg.HTTPListener.Port)
|
||||||
err := http.ListenAndServe(c.Cfg.HTTPListener.Host+":"+c.Cfg.HTTPListener.Port, c.HTTPServerMux)
|
err := http.ListenAndServe(c.Cfg.HTTPListener.Host+":"+c.Cfg.HTTPListener.Port, c.HTTPServerMux)
|
||||||
log.Fatalln(err)
|
c.Log.Fatalln(err)
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package appcontext
|
package appcontext
|
||||||
|
|
||||||
var (
|
var (
|
||||||
a *Context
|
с *Context
|
||||||
)
|
)
|
||||||
|
|
||||||
// New is a Context creation function
|
// New is a Context creation function
|
||||||
|
Reference in New Issue
Block a user