mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
reduce amount of logging
This commit is contained in:
parent
f8ca35f9b6
commit
a64b67a54f
2 changed files with 8 additions and 2 deletions
|
@ -513,10 +513,10 @@ CRefMgr::AddNew( const char* cookie, const char* connName, CookieID id )
|
|||
logf( XW_LOGINFO, "making new cref: %d", id );
|
||||
|
||||
if ( !!ref ) {
|
||||
logf( XW_LOGINFO, "using from free list" );
|
||||
logf( XW_LOGVERBOSE1, "using from free list" );
|
||||
ref->ReInit( cookie, connName, id );
|
||||
} else {
|
||||
logf( XW_LOGINFO, "calling constructor" );
|
||||
logf( XW_LOGVERBOSE1, "calling constructor" );
|
||||
ref = new CookieRef( cookie, connName, id );
|
||||
}
|
||||
|
||||
|
|
|
@ -238,7 +238,9 @@ XWThreadPool::real_tpool_main()
|
|||
void
|
||||
XWThreadPool::interrupt_poll()
|
||||
{
|
||||
#ifdef LOG_POLL
|
||||
logf( XW_LOGINFO, __func__ );
|
||||
#endif
|
||||
unsigned char byt = 0;
|
||||
int nSent = write( m_pipeWrite, &byt, 1 );
|
||||
if ( nSent != 1 ) {
|
||||
|
@ -304,7 +306,9 @@ XWThreadPool::real_listener()
|
|||
logf( XW_LOGINFO, "polling %s nmillis=%d", log, nMillis );
|
||||
#endif
|
||||
int nEvents = poll( fds, nSockets, nMillis );
|
||||
#ifdef LOG_POLL
|
||||
logf( XW_LOGINFO, "back from poll: %d", nEvents );
|
||||
#endif
|
||||
if ( m_timeToDie ) {
|
||||
break;
|
||||
}
|
||||
|
@ -317,7 +321,9 @@ XWThreadPool::real_listener()
|
|||
}
|
||||
|
||||
if ( fds[0].revents != 0 ) {
|
||||
#ifdef LOG_POLL
|
||||
logf( XW_LOGINFO, "poll interrupted" );
|
||||
#endif
|
||||
assert( fds[0].revents == POLLIN );
|
||||
unsigned char byt;
|
||||
read( fds[0].fd, &byt, 1 );
|
||||
|
|
Loading…
Reference in a new issue