Skip to content

Commit

Permalink
Fix capitalization of logs
Browse files Browse the repository at this point in the history
  • Loading branch information
unexge committed Oct 11, 2022
1 parent 232ec78 commit 424f9f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rust-runtime/aws-smithy-http-server-python/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -463,13 +463,13 @@ event_loop.add_signal_handler(signal.SIGINT,
let rt = runtime::Builder::new_multi_thread()
.enable_all()
.build()
.expect("Unable to start a new Tokio runtime for this process");
.expect("unable to start a new tokio runtime for this process");
rt.block_on(async move {
let handler = LambdaHandler::new(app);
let lambda = lambda_http::run(handler);
tracing::debug!("Starting Lambda handler");
tracing::debug!("starting lambda handler");
if let Err(err) = lambda.await {
tracing::error!("Lambda handler error: {}", err);
tracing::error!(error = %err, "unable to start lambda handler");
}
});
Ok(())
Expand All @@ -484,7 +484,7 @@ event_loop.add_signal_handler(signal.SIGINT,
let app = self.build_router(event_loop)?;
// Create the `PyState` object from the Python context object.
let context = self.context().clone().unwrap_or_else(|| py.None());
tracing::debug!("Add middlewares to Rust Python router");
tracing::debug!("add middlewares to rust python router");
let app = app.layer(ServiceBuilder::new().layer(AddExtensionLayer::new(context)));
Ok(app)
}
Expand Down

0 comments on commit 424f9f5

Please sign in to comment.