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 )
{
****
***/
+#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 )
{
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." ) );
}
{
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( );