mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
Remove extraneous logging
This commit is contained in:
parent
9dfa3e4a17
commit
bba5a7563f
2 changed files with 4 additions and 8 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue