Skip to content

Commit

Permalink
Merge pull request #201 from Targoman/illegal_instruction_bug_in_stor…
Browse files Browse the repository at this point in the history
…e_to_s3

add debug to code for tracing bug
  • Loading branch information
kambizzandi authored Sep 4, 2022
2 parents dfb3aa8 + 3f9d34d commit fd2ec3b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Interfaces/ObjectStorage/Gateways/gtwAWSS3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ bool gtwAWSS3::storeFile(
const QString &_path,
const QString &_fileName
) {
TargomanDebug(5) << "before gtwAWSS3::storeFile"
<< endl
<< "_fullFileName: " << _fullFileName
<< "_path: " << _path
<< "_fileName: " << _fileName
;

// QString Bucket = _uploadGateway.ugwMetaInfo[AWSS3MetaInfoJsonKey::Bucket].toString();
// QString EndpointUrl = _uploadGateway.ugwMetaInfo[AWSS3MetaInfoJsonKey::EndpointUrl].toString();

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

TargomanDebug(5) << "after gtwAWSS3::storeFile";

return true;
}

Expand Down
12 changes: 12 additions & 0 deletions Interfaces/ObjectStorage/ObjectStorageManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,19 @@ bool ObjectStorageManager::processQueue(
.where({ tblUploadQueue::Fields::uquID, enuConditionOperator::Equal, QueueInfo.UploadQueue.uquID })
.execute(_processQueueParams.CurrentUserID);

/************************************************************************/
/************************************************************************/
/************************************************************************/
TargomanDebug(5) << "before ObjectStorageManager::storeFileToGateway"
<< endl
<< "fileID: " << QueueInfo.UploadFiles.uflID
<< "queueID: " << QueueInfo.UploadQueue.uquID
;
Stored = ObjectStorageManager::storeFileToGateway(_processQueueParams.APICALLBOOM_PARAM, QueueInfo);
TargomanDebug(5) << "after ObjectStorageManager::storeFileToGateway";
/************************************************************************/
/************************************************************************/
/************************************************************************/

if (Stored)
_processQueueParams.UploadQueue.makeUpdateQuery(_processQueueParams.APICALLBOOM_PARAM)
Expand Down

0 comments on commit fd2ec3b

Please sign in to comment.