Add flag to disable startup banner

This commit is contained in:
Deluan 2020-01-15 17:48:46 -05:00
parent be377846a8
commit ca2c897340
2 changed files with 4 additions and 1 deletions

View file

@ -24,7 +24,9 @@ type Server struct {
func New(importer *scanner_legacy.Importer) *Server {
a := &Server{Importer: importer}
showBanner(Version)
if !conf.Sonic.DevDisableBanner {
showBanner(Version)
}
initMimeTypes()
a.initRoutes()
a.initImporter()