summaryrefslogtreecommitdiff
path: root/src/FileAllocationCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-07-20 17:06:21 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-07-20 17:06:21 +0000
commitcd6b6e359135f88afffbaa31c126489aa9813571 (patch)
treebc46068d0f73e8857931b6bb48cf96dbdccd59bd /src/FileAllocationCommand.cc
parent6e7893c8489b6bd100699edfc480d95afda66bc1 (diff)
2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that prevents cookies from being sent to the server if the domain of cookie is FQDN and starts with ".". * src/Cookie.cc (match) To add the ability to change peer id. * src/DefaultBtContext.h (_peerIdPrefix): New variable (setPeerIdPrefix): New function. * src/torrentRequestInfo.cc (execute): Set the option value of PREF_PEER_ID_PREFIX to DefaultBtContext. * src/main.cc (main): Added peer-id-prefix command-line option. The usage message is not added yet. * src/DefaultBtContext.cc (generatePeerId): Use _peerIdPrefix. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
Diffstat (limited to 'src/FileAllocationCommand.cc')
-rw-r--r--src/FileAllocationCommand.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FileAllocationCommand.cc b/src/FileAllocationCommand.cc
index 6634165f..fed1c2a8 100644
--- a/src/FileAllocationCommand.cc
+++ b/src/FileAllocationCommand.cc
@@ -43,7 +43,7 @@ bool FileAllocationCommand::executeInternal()
_fileAllocationEntry->allocateChunk();
if(_fileAllocationEntry->finished()) {
- logger->debug("%d seconds to allocate %lld byte(s)",
+ logger->debug(MSG_ALLOCATION_COMPLETED,
_timer.difference(), _requestGroup->getTotalLength());
_e->_fileAllocationMan->markCurrentFileAllocationEntryDone();
@@ -68,7 +68,7 @@ bool FileAllocationCommand::executeInternal()
bool FileAllocationCommand::handleException(Exception* e)
{
- logger->error("CUID#%d - Exception caught while allocating file space.", e, cuid);
+ logger->error(MSG_FILE_ALLOCATION_FAILURE, e, cuid);
delete e;
logger->error(MSG_DOWNLOAD_NOT_COMPLETE, cuid, _requestGroup->getFilePath().c_str());
return true;