mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Remove some CoreFile debug output
This commit is contained in:
parent
bd5eebbc2e
commit
c6e60c4c77
|
@ -27,7 +27,7 @@ void CoreFile::sendAvatarFile(Core* core, uint32_t friendId, const QByteArray& d
|
||||||
qWarning() << "CoreFile::sendAvatarFile: Can't create the Tox file sender";
|
qWarning() << "CoreFile::sendAvatarFile: Can't create the Tox file sender";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
qDebug() << QString("CoreFile::sendAvatarFile: Created file sender %1 with friend %2").arg(fileNum).arg(friendId);
|
//qDebug() << QString("CoreFile::sendAvatarFile: Created file sender %1 with friend %2").arg(fileNum).arg(friendId);
|
||||||
|
|
||||||
ToxFile file{fileNum, friendId, "", "", ToxFile::SENDING};
|
ToxFile file{fileNum, friendId, "", "", ToxFile::SENDING};
|
||||||
file.filesize = filesize;
|
file.filesize = filesize;
|
||||||
|
@ -293,7 +293,7 @@ void CoreFile::onFileDataCallback(Tox *tox, uint32_t friendId, uint32_t fileId,
|
||||||
// If we reached EOF, ack and cleanup the transfer
|
// If we reached EOF, ack and cleanup the transfer
|
||||||
if (!length)
|
if (!length)
|
||||||
{
|
{
|
||||||
qDebug("CoreFile::onFileDataCallback: File sending completed");
|
//qDebug("CoreFile::onFileDataCallback: File sending completed");
|
||||||
if (file->fileKind != TOX_FILE_KIND_AVATAR)
|
if (file->fileKind != TOX_FILE_KIND_AVATAR)
|
||||||
emit static_cast<Core*>(core)->fileTransferFinished(*file);
|
emit static_cast<Core*>(core)->fileTransferFinished(*file);
|
||||||
removeFile(friendId, fileId);
|
removeFile(friendId, fileId);
|
||||||
|
@ -336,8 +336,8 @@ void CoreFile::onFileDataCallback(Tox *tox, uint32_t friendId, uint32_t fileId,
|
||||||
void CoreFile::onFileRecvChunkCallback(Tox *tox, uint32_t friendId, uint32_t fileId, uint64_t position,
|
void CoreFile::onFileRecvChunkCallback(Tox *tox, uint32_t friendId, uint32_t fileId, uint64_t position,
|
||||||
const uint8_t *data, size_t length, void *core)
|
const uint8_t *data, size_t length, void *core)
|
||||||
{
|
{
|
||||||
qDebug() << QString("CoreFile: Received chunk for %1:%2 pos %3 size %4")
|
//qDebug() << QString("CoreFile: Received chunk for %1:%2 pos %3 size %4")
|
||||||
.arg(friendId).arg(fileId).arg(position).arg(length);
|
// .arg(friendId).arg(fileId).arg(position).arg(length);
|
||||||
|
|
||||||
ToxFile* file = findFile(friendId, fileId);
|
ToxFile* file = findFile(friendId, fileId);
|
||||||
if (!file)
|
if (!file)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user