From c8e2a4c8285b5ff3dd2e6a50412c996054631cef Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 6 Sep 2011 18:54:55 +0000 Subject: [PATCH] put some pqissl warnings in log file only in debug mode, since this is quite CPU demanding git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4590 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/pqissl.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libretroshare/src/pqi/pqissl.cc b/libretroshare/src/pqi/pqissl.cc index e1c43d0fc..0faefc7d1 100644 --- a/libretroshare/src/pqi/pqissl.cc +++ b/libretroshare/src/pqi/pqissl.cc @@ -1677,12 +1677,14 @@ int pqissl::isactive() bool pqissl::moretoread() { +#ifdef PQISSL_DEBUG { std::ostringstream out; out << "pqissl::moretoread()"; out << " polling socket (" << sockfd << ")"; rslog(RSL_DEBUG_ALL, pqisslzone, out.str()); } +#endif fd_set ReadFDs, WriteFDs, ExceptFDs; FD_ZERO(&ReadFDs); @@ -1747,8 +1749,10 @@ bool pqissl::moretoread() bool pqissl::cansend() { +#ifdef PQISSL_DEBUG rslog(RSL_DEBUG_ALL, pqisslzone, "pqissl::cansend() polling socket!"); +#endif // Interestingly - This code might be portable....