summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-sdk-php/src/Credentials/Credentials.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/Credentials/Credentials.php')
-rw-r--r--vendor/aws/aws-sdk-php/src/Credentials/Credentials.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/vendor/aws/aws-sdk-php/src/Credentials/Credentials.php b/vendor/aws/aws-sdk-php/src/Credentials/Credentials.php
index aca605a..49af463 100644
--- a/vendor/aws/aws-sdk-php/src/Credentials/Credentials.php
+++ b/vendor/aws/aws-sdk-php/src/Credentials/Credentials.php
@@ -99,6 +99,12 @@ class Credentials implements CredentialsInterface, \Serializable
$this->expires = $data['expires'];
}
+ /**
+ * Internal-only. Used when IMDS is unreachable
+ * or returns expires credentials.
+ *
+ * @internal
+ */
public function extendExpiration() {
$extension = mt_rand(5, 10);
$this->expires = time() + $extension * 60;
@@ -108,6 +114,6 @@ Attempting credential expiration extension due to a credential service
availability issue. A refresh of these credentials will be attempted again
after {$extension} minutes.\n
EOT;
- error_log($message);
+ trigger_error($message, E_USER_WARNING);
}
}