mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
log when address replaced
This commit is contained in:
parent
49a2d099f0
commit
13c234dfab
1 changed files with 2 additions and 0 deletions
|
@ -56,6 +56,7 @@ DevMgr::Remember( DevIDRelay devid, const AddrInfo::AddrUnion* saddr )
|
|||
pair<map<DevIDRelay,UDPAddrRec>::iterator, bool> result =
|
||||
m_devAddrMap.insert( pair<DevIDRelay,UDPAddrRec>( devid, rec ) );
|
||||
if ( !result.second ) {
|
||||
logf( XW_LOGINFO, "%s: replacing address for %d", __func__, devid );
|
||||
result.first->second = rec;
|
||||
}
|
||||
|
||||
|
@ -64,6 +65,7 @@ DevMgr::Remember( DevIDRelay devid, const AddrInfo::AddrUnion* saddr )
|
|||
if ( m_addrDevMap.end() != iter && devid != iter->second ) {
|
||||
logf( XW_LOGERROR, "%s: addr '%s' already listed (for devid %d)",
|
||||
__func__, b64, iter->second );
|
||||
assert(0);
|
||||
iter->second = devid;
|
||||
} else {
|
||||
m_addrDevMap.insert( pair<AddrInfo::AddrUnion,
|
||||
|
|
Loading…
Add table
Reference in a new issue