Created a new port_mapping_log_notification alert category to separate portmap_log_alert.

This commit is contained in:
Alden Torres 2015-08-11 19:56:44 -04:00
parent 36cf20b19f
commit 1805c96f44
2 changed files with 5 additions and 1 deletions

View File

@ -195,6 +195,10 @@ namespace libtorrent {
// enable events from pure dht operations not related to torrents // enable events from pure dht operations not related to torrents
dht_operation_notification = 0x40000, dht_operation_notification = 0x40000,
// enables port mapping log events. This log is useful
// for debugging the UPnP or NAT-PMP implementation
port_mapping_log_notification = 0x80000,
// The full bitmask, representing all available categories. // The full bitmask, representing all available categories.
// //
// since the enum is signed, make sure this isn't // since the enum is signed, make sure this isn't

View File

@ -1398,7 +1398,7 @@ namespace libtorrent
TORRENT_DEFINE_ALERT(portmap_log_alert, 52) TORRENT_DEFINE_ALERT(portmap_log_alert, 52)
static const int static_category = alert::port_mapping_notification; static const int static_category = alert::port_mapping_log_notification;
virtual std::string message() const; virtual std::string message() const;
int map_type; int map_type;