From 70f9aa5d63b4c14f372c0d70ec9baef91450882e Mon Sep 17 00:00:00 2001 From: RetroPooh Date: Fri, 5 Jun 2020 17:22:29 +0300 Subject: [PATCH] disable some spam debug --- libretroshare/src/gxs/gxssecurity.cc | 2 ++ libretroshare/src/pqi/pqissl.cc | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/gxs/gxssecurity.cc b/libretroshare/src/gxs/gxssecurity.cc index 6dedf1dff..6e7f37e82 100644 --- a/libretroshare/src/gxs/gxssecurity.cc +++ b/libretroshare/src/gxs/gxssecurity.cc @@ -1119,8 +1119,10 @@ bool GxsSecurity::validateNxsGrp(const RsNxsGrp& grp, const RsTlvKeySignature& s signOk = EVP_VerifyFinal(mdctx, sigbuf, siglen, signKey); EVP_MD_CTX_destroy(mdctx); +#ifdef GXS_SECURITY_DEBUG if(i>0) std::cerr << "(WW) Checking group signature with old api version " << i+1 << " : tag " << std::hex << api_versions_to_check[i] << std::dec << " result: " << signOk << std::endl; +#endif } /* clean up */ diff --git a/libretroshare/src/pqi/pqissl.cc b/libretroshare/src/pqi/pqissl.cc index db8d32cf7..db906ebec 100644 --- a/libretroshare/src/pqi/pqissl.cc +++ b/libretroshare/src/pqi/pqissl.cc @@ -860,10 +860,10 @@ int pqissl::Basic_Connection_Complete() { // error - reset socket. // this is a definite bad socket!. - +#ifdef PQISSL_LOG_DEBUG2 rslog(RSL_WARNING, pqisslzone, "pqissl::Basic_Connection_Complete() Select ERROR(2)"); - +#endif net_internal_close(sockfd); sockfd=-1; //reset(); @@ -1595,7 +1595,9 @@ int pqissl::readdata(void *data, int len) reset_locked(); } +#ifdef PQISSL_LOG_DEBUG2 rslog(RSL_ALERT, pqisslzone, out); +#endif //std::cerr << out << std::endl ; return -1; }