Skip to content

Commit 3f9d34d

Browse files
committed
add debug to code for tracing bug
1 parent dfb3aa8 commit 3f9d34d

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

Interfaces/ObjectStorage/Gateways/gtwAWSS3.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ bool gtwAWSS3::storeFile(
4141
const QString &_path,
4242
const QString &_fileName
4343
) {
44+
TargomanDebug(5) << "before gtwAWSS3::storeFile"
45+
<< endl
46+
<< "_fullFileName: " << _fullFileName
47+
<< "_path: " << _path
48+
<< "_fileName: " << _fileName
49+
;
50+
4451
// QString Bucket = _uploadGateway.ugwMetaInfo[AWSS3MetaInfoJsonKey::Bucket].toString();
4552
// QString EndpointUrl = _uploadGateway.ugwMetaInfo[AWSS3MetaInfoJsonKey::EndpointUrl].toString();
4653

@@ -93,6 +100,8 @@ bool gtwAWSS3::storeFile(
93100
if (Outcome.IsSuccess() == false)
94101
throw exTargomanBase(QString("Could not save file to the s3 server: %1").arg(Outcome.GetError().GetMessage().c_str()), ESTATUS_REQUEST_TIMEOUT);
95102

103+
TargomanDebug(5) << "after gtwAWSS3::storeFile";
104+
96105
return true;
97106
}
98107

Interfaces/ObjectStorage/ObjectStorageManager.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,19 @@ bool ObjectStorageManager::processQueue(
358358
.where({ tblUploadQueue::Fields::uquID, enuConditionOperator::Equal, QueueInfo.UploadQueue.uquID })
359359
.execute(_processQueueParams.CurrentUserID);
360360

361+
/************************************************************************/
362+
/************************************************************************/
363+
/************************************************************************/
364+
TargomanDebug(5) << "before ObjectStorageManager::storeFileToGateway"
365+
<< endl
366+
<< "fileID: " << QueueInfo.UploadFiles.uflID
367+
<< "queueID: " << QueueInfo.UploadQueue.uquID
368+
;
361369
Stored = ObjectStorageManager::storeFileToGateway(_processQueueParams.APICALLBOOM_PARAM, QueueInfo);
370+
TargomanDebug(5) << "after ObjectStorageManager::storeFileToGateway";
371+
/************************************************************************/
372+
/************************************************************************/
373+
/************************************************************************/
362374

363375
if (Stored)
364376
_processQueueParams.UploadQueue.makeUpdateQuery(_processQueueParams.APICALLBOOM_PARAM)

0 commit comments

Comments
 (0)