]> granicus.if.org Git - transmission/commitdiff
(trunk libT) demote the remaining lazy-verify debug messages from the debug window...
authorJordan Lee <jordan@transmissionbt.com>
Tue, 18 Jan 2011 02:17:47 +0000 (02:17 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Tue, 18 Jan 2011 02:17:47 +0000 (02:17 +0000)
libtransmission/peer-mgr.c
libtransmission/torrent.c

index b45bb3081b8b908dfeeb07b5267c1add25992d6e..7d33486fd742eb32555554c752bd6a2e71946cae 100644 (file)
@@ -1455,7 +1455,7 @@ peerCallbackFunc( tr_peer * peer, const tr_peer_event * e, void * vt )
                     const tr_piece_index_t p = e->pieceIndex;
                     const tr_bool ok = tr_torrentCheckPiece( tor, p );
 
-                    tr_tordbg( tor, "[LAZY] checked just-completed piece %zu", (size_t)p );
+                    tordbg( t, "[LAZY] checked just-completed piece %zu", (size_t)p );
 
                     if( !ok )
                     {
index 174fd57bf83a145db8d9537d8e5bd84fa19686bd..2c23f8e43fc5d62069dd013381b2090738924650 100644 (file)
 ****
 ***/
 
+#define tr_deeplog_tor( tor, ... ) \
+    do { \
+        if( tr_deepLoggingIsActive( ) ) \
+            tr_deepLog( __FILE__, __LINE__, tr_torrentName( tor ), __VA_ARGS__ ); \
+    } while( 0 )
+
+/***
+****
+***/
+
 int
 tr_torrentId( const tr_torrent * tor )
 {
@@ -764,7 +774,7 @@ setLocalErrorIfFilesDisappeared( tr_torrent * tor )
 
     if( disappeared )
     {
-        tr_tordbg( tor, "%s", "[LAZY] uh oh, the files disappeared" );
+        tr_deeplog_tor( tor, "%s", "[LAZY] uh oh, the files disappeared" );
         tr_torrentSetLocalError( tor, "%s", _( "No data found! Ensure your drives are connected or use \"Set Location\". To re-download, remove the torrent and re-add it." ) );
     }
 
@@ -2338,7 +2348,7 @@ tr_torrentCheckPiece( tr_torrent * tor, tr_piece_index_t pieceIndex )
 {
     const tr_bool pass = tr_ioTestPiece( tor, pieceIndex );
 
-    tr_tordbg( tor, "[LAZY] tr_torrentCheckPiece tested piece %zu, pass==%d", (size_t)pieceIndex, (int)pass );
+    tr_deeplog_tor( tor, "[LAZY] tr_torrentCheckPiece tested piece %zu, pass==%d", (size_t)pieceIndex, (int)pass );
     tr_torrentSetHasPiece( tor, pieceIndex, pass );
     tr_torrentSetPieceChecked( tor, pieceIndex );
     tor->anyDate = tr_time( );