Skip to content

Commit

Permalink
refactor: normalize log texts
Browse files Browse the repository at this point in the history
- First word uppercase
- Remove full stop at the end of the text
  • Loading branch information
josecelano committed Jul 2, 2024
1 parent f39f5e5 commit a2b8fc5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ pub async fn run(configuration: Configuration, api_version: &Version) -> Running
}
}

/// It logs the final configuration removing secrets.
async fn log_configuration(configuration: &Configuration) {
let mut setting = configuration.get_all().await.clone();
setting.remove_secrets();
Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn tracing_stdout_init(filter: LevelFilter, style: &TraceStyle) {
TraceStyle::Json => builder.json().init(),
};

info!("logging initialized.");
info!("Logging initialized");
}

#[derive(Debug)]
Expand Down
2 changes: 1 addition & 1 deletion src/console/commands/seeder/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ use tracing::level_filters::LevelFilter;
pub fn setup(level: LevelFilter) {
tracing_subscriber::fmt().with_max_level(level).init();

debug!("logging initialized.");
debug!("Logging initialized");
}

0 comments on commit a2b8fc5

Please sign in to comment.