split tracing init into unit
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
703c275266
commit
bd19fac4c5
3 changed files with 111 additions and 107 deletions
|
@ -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}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue