diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-04-24 18:07:54 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-04-24 18:07:54 (GMT) |
commit | 98f0f0c5cee040d3b0df5ff4d695320b2f93da24 (patch) | |
tree | d65f2fd820f3c1879ff101471d23cdeba92905bd | |
parent | 84ab5d3499e9dbcb97fed23051a104d9b5e967cc (diff) | |
download | swift-contrib-98f0f0c5cee040d3b0df5ff4d695320b2f93da24.zip swift-contrib-98f0f0c5cee040d3b0df5ff4d695320b2f93da24.tar.bz2 |
Changed SWIFT_LOG("DEBUG") to SWIFT_LOG(debug).
-rw-r--r-- | Swift/Controllers/FileTransfer/FileTransferController.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/Controllers/FileTransfer/FileTransferController.cpp b/Swift/Controllers/FileTransfer/FileTransferController.cpp index f1fd19e..a25dfe6 100644 --- a/Swift/Controllers/FileTransfer/FileTransferController.cpp +++ b/Swift/Controllers/FileTransfer/FileTransferController.cpp @@ -64,35 +64,35 @@ int FileTransferController::getProgress() const { boost::uintmax_t FileTransferController::getSize() const { if (transfer) { return transfer->fileSizeInBytes; } else { return 0; } } void FileTransferController::start(std::string& description) { - SWIFT_LOG("DEBUG") << "FileTransferController::start" << std::endl; + SWIFT_LOG(debug) << "FileTransferController::start" << std::endl; fileReadStream = boost::make_shared<FileReadBytestream>(boost::filesystem::path(filename)); OutgoingFileTransfer::ref outgoingTransfer = ftManager->createOutgoingFileTransfer(otherParty, boost::filesystem::path(filename), description, fileReadStream); if (outgoingTransfer) { ftProgressInfo = new FileTransferProgressInfo(outgoingTransfer->fileSizeInBytes); ftProgressInfo->onProgressPercentage.connect(boost::bind(&FileTransferController::handleProgressPercentageChange, this, _1)); outgoingTransfer->onStateChange.connect(boost::bind(&FileTransferController::handleFileTransferStateChange, this, _1)); outgoingTransfer->onProcessedBytes.connect(boost::bind(&FileTransferProgressInfo::setBytesProcessed, ftProgressInfo, _1)); outgoingTransfer->start(); transfer = outgoingTransfer; } else { std::cerr << "File transfer not supported!" << std::endl; } } void FileTransferController::accept(std::string& file) { - SWIFT_LOG("DEBUG") << "FileTransferController::accept" << std::endl; + SWIFT_LOG(debug) << "FileTransferController::accept" << std::endl; IncomingFileTransfer::ref incomingTransfer = boost::dynamic_pointer_cast<IncomingFileTransfer>(transfer); if (incomingTransfer) { fileWriteStream = boost::make_shared<FileWriteBytestream>(boost::filesystem::path(file)); ftProgressInfo = new FileTransferProgressInfo(transfer->fileSizeInBytes); ftProgressInfo->onProgressPercentage.connect(boost::bind(&FileTransferController::handleProgressPercentageChange, this, _1)); transfer->onStateChange.connect(boost::bind(&FileTransferController::handleFileTransferStateChange, this, _1)); transfer->onProcessedBytes.connect(boost::bind(&FileTransferProgressInfo::setBytesProcessed, ftProgressInfo, _1)); incomingTransfer->accept(fileWriteStream); |