mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-14 08:24:07 +00:00
Add debug messages
This commit is contained in:
parent
1cbe9fb7a3
commit
5df94d7e33
@ -1396,6 +1396,7 @@ int S3fsCurl::ParallelGetObjectRequest(const char* tpath, int fd, off_t start, s
|
||||
bool S3fsCurl::ParseIAMCredentialResponse(const char* response, iamcredmap_t& keyval)
|
||||
{
|
||||
if(!response){
|
||||
S3FS_PRN_INFO3("No response");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -1403,6 +1404,7 @@ bool S3fsCurl::ParseIAMCredentialResponse(const char* response, iamcredmap_t& ke
|
||||
Json::Reader reader;
|
||||
|
||||
if (!reader.parse(response, root)) {
|
||||
S3FS_PRN_INFO3("Failed to parse");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -1411,7 +1413,10 @@ bool S3fsCurl::ParseIAMCredentialResponse(const char* response, iamcredmap_t& ke
|
||||
keyval[string(IAMCRED_ACCESSTOKEN)] = root.get(IAMCRED_ACCESSTOKEN, "").asString();
|
||||
keyval[string(IAMCRED_EXPIRATION)] = root.get(IAMCRED_EXPIRATION, "").asString();
|
||||
|
||||
S3FS_PRN_INFO3("Not enough keys %s", string(keyval[string(IAMCRED_ACCESSKEYID)]));
|
||||
|
||||
if (S3fsCurl::is_ecs) {
|
||||
S3FS_PRN_INFO3("Setting IAMCRED_ROLEARN");
|
||||
keyval[string(IAMCRED_ROLEARN)] = root.get(IAMCRED_ROLEARN, "").asString();
|
||||
}
|
||||
|
||||
@ -1430,6 +1435,7 @@ bool S3fsCurl::SetIAMCredentials(const char* response)
|
||||
S3FS_PRN_INFO3("Parsed");
|
||||
|
||||
if(S3fsCurl::is_ecs ? IAMCRED_KEYCOUNT_ECS : IAMCRED_KEYCOUNT != keyval.size()){
|
||||
S3FS_PRN_INFO3("Not enough keys");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user