*** empty log message ***

This commit is contained in:
Arvid Norberg
2005-03-19 12:22:40 +00:00
parent 4011f16044
commit 6ff7e76ab2
13 changed files with 159 additions and 142 deletions

View File

@@ -224,8 +224,8 @@ namespace libtorrent { namespace detail
, m_max_connections(-1)
, m_incoming_connection(false)
{
#ifndef NDEBUG
m_logger = create_log("main session");
#ifdef TORRENT_VERBOSE_LOGGING
m_logger = create_log("main_session");
#endif
std::fill(m_extension_enabled, m_extension_enabled
+ peer_connection::num_supported_extensions, true);
@@ -799,15 +799,11 @@ namespace libtorrent { namespace detail
return 0;
}
#ifndef NDEBUG
#ifdef TORRENT_VERBOSE_LOGGING
boost::shared_ptr<logger> session_impl::create_log(std::string const& name)
{
// current options are file_logger, cout_logger and null_logger
#if defined(TORRENT_VERBOSE_LOGGING)
return boost::shared_ptr<logger>(new file_logger(name + ".log"));
#else
return boost::shared_ptr<logger>(new null_logger());
#endif
}
#endif