merged logging fix from RC_0_16

This commit is contained in:
Arvid Norberg 2012-12-15 02:50:47 +00:00
parent 40805503d6
commit 1422f5a1ba
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
* fix uTP edge case where udp socket buffer fills up
* fix nagle implementation in uTP
* fixed verbose log error for NAT holepunching
* fix a bunch of typos in python bindings
* make get_settings available in the python binding regardless of deprecated functions
* fix typo in python settings binding

View File

@ -1504,7 +1504,7 @@ namespace libtorrent
error_code ec;
char const* err_msg[] = {"no such peer", "not connected", "no support", "no self"};
peer_log("<== HOLEPUNCH [ msg:failed error: %d msg: %s ]", error
, ((error >= 0 && error < 4)?err_msg[error]:"unknown message id"));
, ((error > 0 && error < 5)?err_msg[error-1]:"unknown message id"));
#endif
// #error deal with holepunch errors
(void)error;