Skip to content

Commit

Permalink
move log function to log package
Browse files Browse the repository at this point in the history
  • Loading branch information
JessonChan committed Mar 12, 2019
1 parent 4564e98 commit ea91e76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 113 deletions.
4 changes: 2 additions & 2 deletions app.go
Expand Up @@ -176,7 +176,7 @@ func (app *App) Run(mws ...MiddleWare) {
if BConfig.Listen.HTTPSPort != 0 {
app.Server.Addr = fmt.Sprintf("%s:%d", BConfig.Listen.HTTPSAddr, BConfig.Listen.HTTPSPort)
} else if BConfig.Listen.EnableHTTP {
BeeLogger.Info("Start https server error, conflict with http. Please reset https port")
logs.Info("Start https server error, conflict with http. Please reset https port")
return
}
logs.Info("https server Running on https://%s", app.Server.Addr)
Expand All @@ -192,7 +192,7 @@ func (app *App) Run(mws ...MiddleWare) {
pool := x509.NewCertPool()
data, err := ioutil.ReadFile(BConfig.Listen.TrustCaFile)
if err != nil {
BeeLogger.Info("MutualHTTPS should provide TrustCaFile")
logs.Info("MutualHTTPS should provide TrustCaFile")
return
}
pool.AppendCertsFromPEM(data)
Expand Down
111 changes: 0 additions & 111 deletions log.go

This file was deleted.

0 comments on commit ea91e76

Please sign in to comment.