Added log message to clarify error for BitTorrent server socket.

pull/1/head
Tatsuhiro Tsujikawa 2011-07-21 21:59:26 +09:00
parent e15f4edf8b
commit f0cd83f809
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,8 @@ bool PeerListenCommand::bindPort(uint16_t& port, IntSequence& seq)
family_ == AF_INET?4:6, port));
return true;
} catch(RecoverableException& ex) {
A2_LOG_ERROR(fmt("Failed to setup IPv%d BitTorrent server socket",
family_ == AF_INET?4:6));
A2_LOG_ERROR_EX(fmt(MSG_BIND_FAILURE,
getCuid(), port),
ex);