mirror of
https://github.com/overte-org/overte.git
synced 2025-04-06 10:32:49 +02:00
CR round 3
This commit is contained in:
parent
e0ca535853
commit
811b01816b
4 changed files with 8 additions and 4 deletions
|
@ -209,7 +209,7 @@ void ATPAssetMigrator::migrateResource(ResourceRequest* request) {
|
|||
// add this URL to our hash of AssetUpload to original URL
|
||||
_originalURLs.insert(upload, request->getUrl());
|
||||
|
||||
qCDebug(asset_migrator) << "Starting upload of asset";
|
||||
qCDebug(asset_migrator) << "Starting upload of asset from" << request->getUrl();
|
||||
|
||||
// connect to the finished signal so we know when the AssetUpload is done
|
||||
QObject::connect(upload, &AssetUpload::finished, this, &ATPAssetMigrator::assetUploadFinished);
|
||||
|
|
|
@ -76,6 +76,10 @@ void AssetUpload::start() {
|
|||
|
||||
// ask the AssetClient to upload the asset and emit the proper signals from the passed callback
|
||||
auto assetClient = DependencyManager::get<AssetClient>();
|
||||
|
||||
if (!_filename.isEmpty()) {
|
||||
qCDebug(asset_client) << "Attempting to upload" << _filename << "to asset-server.";
|
||||
}
|
||||
|
||||
assetClient->uploadAsset(_data, [this](bool responseReceived, AssetUtils::AssetServerError error, const QString& hash){
|
||||
if (!responseReceived) {
|
||||
|
|
|
@ -765,7 +765,7 @@ bool Resource::handleFailedRequest(ResourceRequest::Result result) {
|
|||
bool willRetry = false;
|
||||
switch (result) {
|
||||
case ResourceRequest::Result::Timeout: {
|
||||
qCDebug(networking) << "Timed out, received" << _bytesReceived << "total" << _bytesTotal;
|
||||
qCDebug(networking) << "Timed out loading" << _url.fileName() << "received" << _bytesReceived << "total" << _bytesTotal;
|
||||
// Fall through to other cases
|
||||
}
|
||||
// FALLTHRU
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
// test module method exception being thrown within preload
|
||||
(function() {
|
||||
var apiMethod = Script.require('../exceptions/exceptionInFunction.js');
|
||||
print("apiMethod", apiMethod);
|
||||
print(Script.resolvePath(''), "apiMethod", apiMethod);
|
||||
return {
|
||||
preload: function(uuid) {
|
||||
// this next line throws from within apiMethod
|
||||
print(apiMethod());
|
||||
print("entityPreloadAPIException::preload -- never seen --", uuid);
|
||||
print("entityPreloadAPIException::preload -- never seen --", uuid, Script.resolvePath(''));
|
||||
},
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue