Something went wrong. Try again.
Source code for my personal quote bot project.
Something went wrong. Try again.
123456789101112131415161718192021222324use tracing::Level;
#[tokio::main]async fn main() -> Result<(), Box<dyn std::error::Error>> { // Start configuring a `fmt` subscriber let subscriber = tracing_subscriber::fmt() // Display source code file paths .with_file(true) // Display source code line numbers .with_line_number(true) // Display the thread ID an event was recorded on .with_thread_ids(true) // Don't display the event's target (module path) .with_target(true) .with_max_level(Level::DEBUG) // Build the subscriber .finish();
tracing::subscriber::set_global_default(subscriber)?; tracing_log::LogTracer::init()?;
audquotes::run::entrypoint().await}