-
I get the following log entry in Cloudwatch when running Rust runtime in AWS Lambda. Is that a configuration issue or a bug?
Getting client: let shared_config = aws_config::defaults(BehaviorVersion::latest()).load().await;
let cli = Client::new(&shared_config); Logger Configuration: #[tokio::main]
async fn main() -> Result<(), Error> {
env_logger::init();
tracing_subscriber::fmt()
.with_max_level(tracing::Level::INFO)
.with_line_number(true)
// disable printing the name of the module in every log line.
.with_target(false)
// disabling time is handy because CloudWatch will add the ingestion time.
.without_time()
.init();
run(service_fn(function_handler)).await
} |
Beta Was this translation helpful? Give feedback.
Answered by
jdisanti
Dec 19, 2023
Replies: 1 comment 2 replies
-
It's perfectly normal. It just means the credentials weren't already cached, so it cached them. It also happens when the credentials expire and it needs to refresh them. You can change the log level for the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
rcoh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's perfectly normal. It just means the credentials weren't already cached, so it cached them. It also happens when the credentials expire and it needs to refresh them. You can change the log level for the
aws-smithy-runtime
towarn
if you don't want to see it in the logs.