add a couple of debug messages to trac down why Lacrocivious' stats aren't being saved

This commit is contained in:
Charles Kerr 2008-04-29 18:22:26 +00:00
parent c16b901c93
commit d659df1093
3 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -11,8 +11,8 @@ NEWS file for Transmission <http://www.transmissionbt.com/>
+ Updated Dock badge images
- GTK+
+ Inhibit hibernation when downloading
+ Various bug fixes and usability improvements
+ Use XDG basedir spec for configuration files
+ Various bug fixes and usability improvements
1.11 (2008/04/04)
- Mac

View File

@ -422,6 +422,7 @@ tr_close( tr_handle * h )
const int maxwait_msec = SHUTDOWN_MAX_SECONDS * 1000;
const uint64_t deadline = tr_date( ) + maxwait_msec;
tr_deepLog( __FILE__, __LINE__, NULL, "shutting down transmission session %p", h );
tr_statsClose( h );
tr_runInEventThread( h, tr_closeAllConnections, h );

View File

@ -77,6 +77,7 @@ saveCumulativeStats( const tr_handle * handle, const tr_session_stats * s )
tr_bencDictAddInt( &top, "seconds-active", s->secondsActive );
getFilename( handle, filename, sizeof(filename) );
tr_deepLog( __FILE__, __LINE__, NULL, "Saving stats to \"%s\"", filename );
tr_bencSaveFile( filename, &top );
tr_bencFree( &top );