Improve binary names and output logs

Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
This commit is contained in:
Antonio Navarro Perez 2020-08-02 21:38:53 +02:00
parent f6539aab06
commit f6d7a5fff2
3 changed files with 7 additions and 4 deletions
cmd/distribyted

View file

@ -136,11 +136,14 @@ func main() {
ctx.JSON(200, stats)
})
log.WithField("host", "0.0.0.0:4444").Info("starting webserver")
//TODO add port from configuration
if err := r.Run(":4444"); err != nil {
log.WithError(err).Error("error initializing server")
return
}
}
func tryClose(log *logrus.Logger, c *torrent.Client, mountService *mount.Handler) {