[Box Backup-commit] COMMIT r2312 - box/trunk/lib/server
boxbackup-dev@boxbackup.org
boxbackup-dev@boxbackup.org
Fri, 3 Oct 2008 23:12:54 +0100 (BST)
Author: chris
Date: 2008-10-03 23:12:54 +0100 (Fri, 03 Oct 2008)
New Revision: 2312
Modified:
box/trunk/lib/server/ProtocolUncertainStream.cpp
Log:
Spacing and additional stream header byte logging.
Modified: box/trunk/lib/server/ProtocolUncertainStream.cpp
===================================================================
--- box/trunk/lib/server/ProtocolUncertainStream.cpp 2008-10-03 22:10:38 UTC (rev 2311)
+++ box/trunk/lib/server/ProtocolUncertainStream.cpp 2008-10-03 22:12:54 UTC (rev 2312)
@@ -103,7 +103,8 @@
}
else
{
- // Read the header byte to find out how much there is in the next block
+ // Read the header byte to find out how much there is
+ // in the next block
uint8_t header;
if(mrSource.Read(&header, 1, Timeout) == 0)
{
@@ -139,8 +140,9 @@
THROW_EXCEPTION(ServerException, ProtocolUncertainStreamBadBlockHeader)
}
- BOX_TRACE("Next block has " <<
- mBytesLeftInCurrentBlock << "bytes");
+ BOX_TRACE("Read header byte " << (int)header << ", "
+ "next block has " <<
+ mBytesLeftInCurrentBlock << " bytes");
}
}