Improve binary names and output logs
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
This commit is contained in:
parent
f6539aab06
commit
f6d7a5fff2
3 changed files with 7 additions and 4 deletions
cmd/distribyted
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue