Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#3145 closed Enhancement (fixed)

Log torrent deletion

Reported by: Longinus00 Owned by: Longinus00
Priority: Lowest Milestone: 1.93
Component: libtransmission Version: 1.92
Severity: Trivial Keywords:
Cc:

Description

Adding and pausing torrents is logged so I think removing torrents should also be logged.

This is easily done by adding a tr_torinf statement into any of the 3 functions that are involved in torrent deletion in torrent.c ( closeTorrent(), tr_torrentFree(), torrentFree ).

Change History (4)

comment:1 Changed 11 years ago by Longinus00

I think closeTorrent() is the natural place for this as that is where the torrent is added to the removedTorrents list.

--- libtransmission/torrent.c
+++ libtransmission/torrent.c
@@ -1577,6 +1577,8 @@ closeTorrent( void * vtor )
     tr_bencDictAddInt( d, "id", tor->uniqueId );
     tr_bencDictAddInt( d, "date", tr_time( ) );

+    tr_torinf( tor, "Removing torrent" );
+
     stopTorrent( tor );

     if( tor->isDeleting )

comment:2 Changed 11 years ago by charles

  • Keywords backport-1.9x added
  • Milestone changed from None Set to 2.00
  • Owner changed from charles to Longinus00

comment:3 Changed 11 years ago by charles

  • Resolution set to fixed
  • Status changed from new to closed

Patch applied to trunk for 2.00 by r10491

comment:4 Changed 11 years ago by charles

  • Keywords backport-1.9x removed
  • Milestone changed from 2.00 to 1.93

15:46:44 < CIA-40> charles * r10595 /branches/1.9x/libtransmission/torrent.c: (1.9x libT) backport r10491 for #3145 "Log torrent deletion"

Note: See TracTickets for help on using tickets.