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

View file

@ -58,7 +58,7 @@ func (s *Handler) Mount(mpc *config.MountPoint) error {
}
s.s.Add(mpc.Path, t)
log.WithField("name", t.Name()).Info("torrent added")
log.WithField("name", t.Name()).WithField("path", mpc.Path).Info("torrent added to mountpoint")
torrents = append(torrents, t)
}