Browse Source

Add message on startup

master
Alex Mikhalev 4 years ago
parent
commit
effd3d8ec1
  1. 3
      src/main.rs

3
src/main.rs

@ -11,7 +11,7 @@ mod section_runner;
#[cfg(test)] #[cfg(test)]
mod trace_listeners; mod trace_listeners;
use color_eyre::eyre::Result; use eyre::Result;
use std::sync::Arc; use std::sync::Arc;
use tracing::info; use tracing::info;
use tracing_subscriber::EnvFilter; use tracing_subscriber::EnvFilter;
@ -24,6 +24,7 @@ async fn main() -> Result<()> {
EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info")), EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info")),
) )
.init(); .init();
info!("Starting sprinklers_rs...");
color_eyre::install()?; color_eyre::install()?;
let conn = database::setup_db()?; let conn = database::setup_db()?;

Loading…
Cancel
Save