From 35631d180ea583cdf3d358c89388e7a4743c4552 Mon Sep 17 00:00:00 2001 From: joss17 Date: Mon, 14 Dec 2009 18:10:34 +0000 Subject: [PATCH] add ifdef for debug logs git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1880 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/ft/ftcontroller.cc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/libretroshare/src/ft/ftcontroller.cc b/libretroshare/src/ft/ftcontroller.cc index f768b62d4..ca7967169 100644 --- a/libretroshare/src/ft/ftcontroller.cc +++ b/libretroshare/src/ft/ftcontroller.cc @@ -373,24 +373,28 @@ bool ftController::completeFile(std::string hash) { RsStackMutex stack(ctrlMutex); /******* LOCKED ********/ - std::cerr << "ftController:completeFile(" << hash << ")"; +#ifdef CONTROL_DEBUG + std::cerr << "ftController:completeFile(" << hash << ")"; std::cerr << std::endl; - +#endif std::map::iterator it; it = mDownloads.find(hash); if (it == mDownloads.end()) { - std::cerr << "ftController:completeFile(" << hash << ")"; +#ifdef CONTROL_DEBUG + std::cerr << "ftController:completeFile(" << hash << ")"; std::cerr << " Not Found!"; std::cerr << std::endl; - return false; +#endif + return false; } /* check if finished */ if (!(it->second).mCreator->finished()) { /* not done! */ - std::cerr << "ftController:completeFile(" << hash << ")"; +#ifdef CONTROL_DEBUG + std::cerr << "ftController:completeFile(" << hash << ")"; std::cerr << " Transfer Not Done"; std::cerr << std::endl; @@ -398,7 +402,7 @@ bool ftController::completeFile(std::string hash) std::cerr << (it->second).mCreator->getFileSize(); std::cerr << " and Recvd: "; std::cerr << (it->second).mCreator->getRecvd(); - +#endif return false; }