Skip to content

Commit

Permalink
fix: update Rust template
Browse files Browse the repository at this point in the history
  • Loading branch information
ericapisani committed Jan 5, 2024
1 parent c0790ea commit 334848f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions-templates/rust/hello-world/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand All @@ -26,4 +26,4 @@ pub(crate) async fn my_handler(event: ApiGatewayProxyRequest, _ctx: Context) ->
};

Ok(resp)
}
}

0 comments on commit 334848f

Please sign in to comment.