Skip to content

Commit

Permalink
feat: start log lines with capital
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Jan 9, 2024
1 parent cf613b8 commit 53613ec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bootstrap/jobs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub struct Started {

pub async fn make_rust_tls(enabled: bool, cert: &Option<String>, key: &Option<String>) -> Option<Result<RustlsConfig, Error>> {
if !enabled {
info!("tls not enabled");
info!("TLS not enabled");
return None;
}

Expand Down
2 changes: 1 addition & 1 deletion src/servers/apis/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ impl Launcher {
tokio::task::spawn(graceful_shutdown(
handle.clone(),
rx_halt,
format!("shutting down http server on socket address: {address}"),
format!("Shutting down http server on socket address: {address}"),
));

let tls = self.tls.clone();
Expand Down
2 changes: 1 addition & 1 deletion src/servers/http/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl Launcher {
tokio::task::spawn(graceful_shutdown(
handle.clone(),
rx_halt,
format!("shutting down http server on socket address: {address}"),
format!("Shutting down http server on socket address: {address}"),
));

let tls = self.tls.clone();
Expand Down
2 changes: 1 addition & 1 deletion src/servers/signals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub async fn shutdown_signal_with_message(rx_halt: tokio::sync::oneshot::Receive
pub async fn graceful_shutdown(handle: axum_server::Handle, rx_halt: tokio::sync::oneshot::Receiver<Halted>, message: String) {
shutdown_signal_with_message(rx_halt, message).await;

info!("sending graceful shutdown signal");
info!("Sending graceful shutdown signal");
handle.graceful_shutdown(Some(Duration::from_secs(90)));

println!("!! shuting down in 90 seconds !!");
Expand Down

0 comments on commit 53613ec

Please sign in to comment.