Skip to content

Commit

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

add more debug log
  • Loading branch information
kambizzandi authored Sep 4, 2022
2 parents 3995849 + 5fa87c1 commit fd1c61c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
9 changes: 8 additions & 1 deletion Interfaces/ObjectStorage/Gateways/gtwAWSS3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ bool gtwAWSS3::storeFile(
const QString &_path,
const QString &_fileName
) {
TargomanLogDebug(5, "*** gtwAWSS3::storeFile: #" << __LINE__);
TargomanLogDebug(5, "before gtwAWSS3::storeFile"
<< endl
<< "_fullFileName: " << _fullFileName
<< "_path: " << _path
<< "_fileName: " << _fileName
Expand All @@ -51,20 +51,27 @@ bool gtwAWSS3::storeFile(
// QString Bucket = _uploadGateway.ugwMetaInfo[AWSS3MetaInfoJsonKey::Bucket].toString();
// QString EndpointUrl = _uploadGateway.ugwMetaInfo[AWSS3MetaInfoJsonKey::EndpointUrl].toString();

TargomanLogDebug(5, "*** gtwAWSS3::storeFile: #" << __LINE__);
QString AccessKey = _uploadGateway.ugwMetaInfo[AWSS3MetaInfoJsonKey::AccessKey].toString();

TargomanLogDebug(5, "*** gtwAWSS3::storeFile: #" << __LINE__);
QString SecretKey = _uploadGateway.ugwMetaInfo[AWSS3MetaInfoJsonKey::SecretKey].toString();

TargomanLogDebug(5, "*** gtwAWSS3::storeFile: #" << __LINE__);
Aws::Auth::AWSCredentials AWSCredentials(AccessKey.toStdString(), SecretKey.toStdString());

TargomanLogDebug(5, "*** gtwAWSS3::storeFile: #" << __LINE__);
Aws::Client::ClientConfiguration S3ClientConfig;

// if (_region.isEmpty() == false)
// S3ClientConfig.region = _region.toStdString();

TargomanLogDebug(5, "*** gtwAWSS3::storeFile: #" << __LINE__);
S3ClientConfig.httpRequestTimeoutMs = 1000;
S3ClientConfig.requestTimeoutMs = 1000;
S3ClientConfig.connectTimeoutMs = 1000;

TargomanLogDebug(5, "*** gtwAWSS3::storeFile: #" << __LINE__);
S3ClientConfig.endpointOverride = _uploadGateway.ugwEndpointUrl.toStdString();
// S3ClientConfig.enableHostPrefixInjection = false;
// S3ClientConfig.enableEndpointDiscovery = false;
Expand Down
9 changes: 5 additions & 4 deletions Interfaces/ObjectStorage/ObjectStorageManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,14 @@ bool ObjectStorageManager::processQueue(
/************************************************************************/
/************************************************************************/
/************************************************************************/
TargomanDebug(5) << "before ObjectStorageManager::storeFileToGateway"
<< endl
TargomanLogDebug(5, "before ObjectStorageManager::storeFileToGateway"
<< "fileID: " << QueueInfo.UploadFiles.uflID
<< "queueID: " << QueueInfo.UploadQueue.uquID
;
);

Stored = ObjectStorageManager::storeFileToGateway(_processQueueParams.APICALLBOOM_PARAM, QueueInfo);
TargomanDebug(5) << "after ObjectStorageManager::storeFileToGateway";

TargomanLogDebug(5, "after ObjectStorageManager::storeFileToGateway");
/************************************************************************/
/************************************************************************/
/************************************************************************/
Expand Down

0 comments on commit fd1c61c

Please sign in to comment.