()
| 79 | |
| 80 | #[tokio::main] |
| 81 | async fn main() -> Result<(), Error> { |
| 82 | tracing_subscriber::fmt() |
| 83 | .with_max_level(tracing::Level::INFO) |
| 84 | // disable printing the name of the module in every log line. |
| 85 | .with_target(false) |
| 86 | // disabling time is handy because CloudWatch will add the ingestion time. |
| 87 | .without_time() |
| 88 | .init(); |
| 89 | |
| 90 | run(service_fn(function_handler)).await |
| 91 | } |