diff --git a/src/torrent.cpp b/src/torrent.cpp index 28e989a8d..e05cc5b1d 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -560,14 +560,14 @@ namespace libtorrent { m_ses.m_alerts.post_alert(fastresume_rejected_alert(get_handle(), error)); } -#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING - (*m_ses.m_logger) << "fastresume data for " - << torrent_file().name() << " rejected: " - << error << "\n"; -#endif if (error) { +#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING + (*m_ses.m_logger) << "fastresume data for " + << torrent_file().name() << " rejected: " + << error << "\n"; +#endif std::vector().swap(m_resume_data); lazy_entry().swap(m_resume_entry); }