From 40bb52e4645b5bd538359a15bcaa92bd354ce1e9 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 29 Mar 2004 06:10:23 +0000 Subject: [PATCH] *** empty log message *** --- src/session.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/session.cpp b/src/session.cpp index af9a8c0ce..a3a2f1a7f 100755 --- a/src/session.cpp +++ b/src/session.cpp @@ -274,6 +274,9 @@ namespace libtorrent { namespace detail , m_download_rate(-1) , m_incoming_connection(false) { +#ifndef NDEBUG + m_logger = create_log("main session"); +#endif // ---- generate a peer id ---- std::srand((unsigned int)std::time(0)); @@ -376,8 +379,6 @@ namespace libtorrent { namespace detail { eh_initializer(); #ifndef NDEBUG - m_logger = create_log("main session"); - try { #endif