Fix startup order, setting LogLevel

This commit is contained in:
Deluan 2020-01-20 17:35:04 -05:00
parent 1e582bec5c
commit 28cd3ec3e4
4 changed files with 12 additions and 7 deletions

View file

@ -14,6 +14,6 @@ Version %s
`
func showBanner(version string) {
fmt.Printf(banner, version)
func ShowBanner() {
fmt.Printf(banner, Version)
}

View file

@ -25,9 +25,6 @@ type Server struct {
func New(scanner *scanner.Scanner, ds model.DataStore) *Server {
a := &Server{Scanner: scanner, ds: ds}
if !conf.Sonic.DevDisableBanner {
showBanner(Version)
}
initMimeTypes()
initialSetup(ds)
a.initRoutes()