diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 719ba15a6..3e914bfe6 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -1218,7 +1218,11 @@ int main(int argc, char* argv[]) & ~(alert::dht_notification + alert::progress_notification + alert::debug_notification - + alert::stats_notification)); + + alert::stats_notification + + alert::session_log_notification + + alert::torrent_log_notification + + alert::peer_log_notification + )); ses.set_load_function(&load_torrent); diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 84229f3f9..470c55b50 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -460,6 +460,8 @@ namespace aux { void session_impl::start_session(settings_pack const& pack) { + m_alerts.set_alert_mask(pack.get_int(settings_pack::alert_mask)); + #if defined TORRENT_LOGGING session_log("start session"); #endif