From 334848f5d3ba064ab3f11bbb2e303670be3f66bf Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Fri, 5 Jan 2024 11:04:30 -0500 Subject: [PATCH] fix: update Rust template --- src/functions-templates/rust/hello-world/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions-templates/rust/hello-world/src/main.rs b/src/functions-templates/rust/hello-world/src/main.rs index f8987cb9c03..e83fe20e1b2 100644 --- a/src/functions-templates/rust/hello-world/src/main.rs +++ b/src/functions-templates/rust/hello-world/src/main.rs @@ -7,7 +7,7 @@ use simple_logger::SimpleLogger; #[tokio::main] async fn main() -> Result<(), Error> { - SimpleLogger::new().with_level(LevelFilter::Info).init().unwrap(); + SimpleLogger::new().with_utc_timestamps().with_level(LevelFilter::Info).init().unwrap(); let func = handler_fn(my_handler); lambda_runtime::run(func).await?; @@ -26,4 +26,4 @@ pub(crate) async fn my_handler(event: ApiGatewayProxyRequest, _ctx: Context) -> }; Ok(resp) -} \ No newline at end of file +}