added some session logging. added more disk-io-thread stats logging and parse script

This commit is contained in:
Arvid Norberg
2008-12-30 08:20:25 +00:00
parent d75985b84c
commit 06da1f8e8a
4 changed files with 41 additions and 28 deletions

View File

@@ -437,6 +437,9 @@ namespace aux {
{
mutex_t::scoped_lock l(m_mutex);
if (m_paused) return;
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING
(*m_logger) << time_now_string() << " *** session paused ***\n";
#endif
m_paused = true;
for (torrent_map::iterator i = m_torrents.begin()
, end(m_torrents.end()); i != end; ++i)
@@ -463,7 +466,7 @@ namespace aux {
{
mutex_t::scoped_lock l(m_mutex);
if (m_abort) return;
#if defined(TORRENT_LOGGING)
#if defined TORRENT_LOGGING
(*m_logger) << time_now_string() << " *** ABORT CALLED ***\n";
#endif
// abort the main thread