refactor!: server add/rm has better UI/UX

Less confusing logging messages, clear "is created" / "already exists"
output. Move the majority of logging to debug output to not confuse the
situation. Some code cleanups also in there.
This commit is contained in:
2024-06-25 09:48:53 +02:00
parent 1a12bef53e
commit 7b7e1bfa97
4 changed files with 63 additions and 48 deletions

View File

@ -17,11 +17,11 @@ func CreateServerDir(serverName string) error {
return err
}
logrus.Infof("%s already exists", serverPath)
logrus.Debugf("%s already exists", serverPath)
return nil
}
logrus.Infof("successfully created %s", serverPath)
logrus.Debugf("successfully created %s", serverPath)
return nil
}