Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
logs at new task
Browse files Browse the repository at this point in the history
  • Loading branch information
boypt committed Apr 19, 2021
1 parent 9b9f939 commit 9cc5947
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ func (e *Engine) IsConfigred() bool {

// NewMagnet -> *Torrent -> addTorrentTask
func (e *Engine) NewMagnet(magnetURI string) error {
log.Println("[NewMagnet] called: ", magnetURI)
e.RLock()
tt, err := e.client.AddMagnet(magnetURI)
if err != nil {
Expand All @@ -149,6 +150,7 @@ func (e *Engine) NewMagnet(magnetURI string) error {

// NewTorrentBySpec -> *Torrent -> addTorrentTask
func (e *Engine) NewTorrentBySpec(spec *torrent.TorrentSpec) error {
log.Println("[NewTorrentBySpec] called ")
e.RLock()
tt, _, err := e.client.AddTorrentSpec(spec)
if err != nil {
Expand Down

0 comments on commit 9cc5947

Please sign in to comment.