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(); auto senderNode = node.toStrongRef();
if (!senderNode) { 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; return;
} }
// Check if we have any pending requests for this node // Check if we have any pending requests for this node
auto messageMapIt = _pendingRequests.find(senderNode); auto messageMapIt = _pendingRequests.find(senderNode);
if (messageMapIt == _pendingRequests.end()) { 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; return;
} }
@ -411,7 +411,7 @@ void AssetClient::handleCompleteCallback(const QWeakPointer<Node>& node, Message
// Check if we have this pending request // Check if we have this pending request
auto requestIt = messageCallbackMap.find(messageID); auto requestIt = messageCallbackMap.find(messageID);
if (requestIt == messageCallbackMap.end()) { 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; return;
} }
@ -419,16 +419,14 @@ void AssetClient::handleCompleteCallback(const QWeakPointer<Node>& node, Message
auto& message = callbacks.message; auto& message = callbacks.message;
if (!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; return;
} }
if (message->failed()) { if (message->failed()) {
qCDebug(asset_client) << "Got failed asset";
callbacks.completeCallback(false, AssetServerError::NoError, QByteArray()); callbacks.completeCallback(false, AssetServerError::NoError, QByteArray());
} else { } else {
qCDebug(asset_client) << "Got asset";
callbacks.completeCallback(true, AssetServerError::NoError, message->readAll()); 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); Q_ASSERT(req->getState() == AssetRequest::Finished);
cleanupTimer(); cleanupTimer();
qDebug() << "Asset request finished, " << req->getHash() << "error: " << req->getError();
switch (req->getError()) { switch (req->getError()) {
case AssetRequest::Error::NoError: case AssetRequest::Error::NoError: