Fix startup order, setting LogLevel
This commit is contained in:
+2
-2
@@ -14,6 +14,6 @@ Version %s
|
||||
|
||||
`
|
||||
|
||||
func showBanner(version string) {
|
||||
fmt.Printf(banner, version)
|
||||
func ShowBanner() {
|
||||
fmt.Printf(banner, Version)
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user