split tracing init into unit

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-06-24 22:22:18 +00:00
parent 703c275266
commit bd19fac4c5
3 changed files with 111 additions and 107 deletions

View file

@ -4,6 +4,7 @@ mod restart;
mod sentry;
mod server;
mod signal;
mod tracing;
extern crate conduit_core as conduit;
@ -53,7 +54,6 @@ fn main() -> Result<(), Error> {
#[cfg(not(conduit_mods))]
async fn async_main(server: &Arc<Server>) -> Result<(), Error> {
extern crate conduit_router as router;
use tracing::error;
if let Err(error) = router::start(&server.server).await {
error!("Critical error starting server: {error}");