Skip to content

Commit badd0a5

Browse files
initialise logger and then install rustls provider
1 parent 1ab6594 commit badd0a5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@ use tracing_subscriber::{EnvFilter, Registry, fmt};
3333

3434
#[actix_web::main]
3535
async fn main() -> anyhow::Result<()> {
36+
init_logger();
3637
// Install the rustls crypto provider before any TLS operations.
3738
// This is required for rustls 0.23+ which needs an explicit crypto provider.
3839
// If the installation fails, log a warning but continue execution.
3940
if let Err(e) = rustls::crypto::ring::default_provider().install_default() {
4041
warn!("Failed to install rustls crypto provider: {:?}", e);
4142
}
4243

43-
init_logger();
44-
4544
// these are empty ptrs so mem footprint should be minimal
4645
let server: Box<dyn ParseableServer> = match &PARSEABLE.options.mode {
4746
Mode::Query => Box::new(QueryServer),

0 commit comments

Comments
 (0)