Remove extraneous logging

This commit is contained in:
Ryan Huffman 2016-10-05 19:25:03 -07:00
parent 9dfa3e4a17
commit bba5a7563f
2 changed files with 4 additions and 8 deletions

View file

@ -394,14 +394,14 @@ void AssetClient::handleCompleteCallback(const QWeakPointer<Node>& node, Message
auto senderNode = node.toStrongRef();
if (!senderNode) {
qCDebug(asset_client) << "Got completed asset for node that no longer exists";
qCWarning(asset_client) << "Got completed asset for node that no longer exists";
return;
}
// Check if we have any pending requests for this node
auto messageMapIt = _pendingRequests.find(senderNode);
if (messageMapIt == _pendingRequests.end()) {
qCDebug(asset_client) << "Got completed asset for a node that doesn't have any pending requests";
qCWarning(asset_client) << "Got completed asset for a node that doesn't have any pending requests";
return;
}
@ -411,7 +411,7 @@ void AssetClient::handleCompleteCallback(const QWeakPointer<Node>& node, Message
// Check if we have this pending request
auto requestIt = messageCallbackMap.find(messageID);
if (requestIt == messageCallbackMap.end()) {
qCDebug(asset_client) << "Got completed asset for a request that doesn't exist";
qCWarning(asset_client) << "Got completed asset for a request that doesn't exist";
return;
}
@ -419,16 +419,14 @@ void AssetClient::handleCompleteCallback(const QWeakPointer<Node>& node, Message
auto& message = callbacks.message;
if (!message) {
qCDebug(asset_client) << "Got completed asset for a message that doesn't exist";
qCWarning(asset_client) << "Got completed asset for a message that doesn't exist";
return;
}
if (message->failed()) {
qCDebug(asset_client) << "Got failed asset";
callbacks.completeCallback(false, AssetServerError::NoError, QByteArray());
} else {
qCDebug(asset_client) << "Got asset";
callbacks.completeCallback(true, AssetServerError::NoError, message->readAll());
}

View file

@ -136,8 +136,6 @@ void AssetResourceRequest::requestHash(const AssetHash& hash) {
Q_ASSERT(req->getState() == AssetRequest::Finished);
cleanupTimer();
qDebug() << "Asset request finished, " << req->getHash() << "error: " << req->getError();
switch (req->getError()) {
case AssetRequest::Error::NoError: