az/put from file offset: log error with status code and reason phrase

This commit is contained in:
Minglei Jin 2024-10-22 12:53:16 +08:00
parent bc247650c5
commit 1153a5222d
2 changed files with 2 additions and 1 deletions

View File

@ -233,6 +233,7 @@ int32_t azPutObjectFromFileOffset(const char *file, const char *object_name, int
<< std::endl;
std::cout << e.what() << std::endl;
*/
azError("%s: Status Code: %d, Reason Phrase: %s", __func__, static_cast<int>(e.StatusCode), e.ReasonPhrase.c_str());
code = TAOS_SYSTEM_ERROR(EIO);
azError("%s failed at line %d since %s", __func__, __LINE__, tstrerror(code));
TAOS_RETURN(code);

View File

@ -33,7 +33,7 @@ int32_t azInitEnv() {
extern char tsS3BucketName[TSDB_FQDN_LEN];
/* TCS parameter format
tsS3Hostname[0] = "endpoint/<account-name>.blob.core.windows.net";
tsS3Hostname[0] = "<endpoint>/<account-name>.blob.core.windows.net";
tsS3AccessKeyId[0] = "<access-key-id/account-name>";
tsS3AccessKeySecret[0] = "<access-key-secret/account-key>";
tsS3BucketName = "<bucket/container-name>";