add official wings ascii logo

This commit is contained in:
Jakob Schrettenbrunner
2017-07-06 19:01:08 +02:00
parent 4421349bfd
commit 260c9d70ab
2 changed files with 22 additions and 8 deletions

View File

@@ -1,8 +1,6 @@
package command
import (
"fmt"
"github.com/Pterodactyl/wings/api"
"github.com/Pterodactyl/wings/config"
"github.com/Pterodactyl/wings/tools"
@@ -31,16 +29,22 @@ func Execute() {
}
func run(cmd *cobra.Command, args []string) {
fmt.Println("Loading configuration")
tools.InitLogging()
log.Info("Loading configuration")
if err := config.LoadConfiguration(nil); err != nil {
log.WithError(err).Fatal("Failed to find configuration file")
}
tools.ConfigureLogging()
log.Info("Starting wings.go version ", Version)
log.Info(` ____`)
log.Info(`__ Pterodactyl _____/___/_______ _______ ______`)
log.Info(`\_____\ \/\/ / / / __ / ___/`)
log.Info(` \___\ / / / / /_/ /___ /`)
log.Info(` \___/\___/___/___/___/___ /______/`)
log.Info(` /_______/ v` + Version)
log.Info()
// Load configuration
log.Info("Loading configuration...")
log.Info("Configuration loaded successfully.")
log.Info("Starting api webserver")
api := api.NewAPI()