diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-01-23 17:41:45 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-01-23 17:41:45 +0100 |
| commit | 774f64c0789529884dd7a5232f190e347ad29532 (patch) | |
| tree | 6eb85388837c993a054fba5ca59fdd329f5b5840 /server/src/main.rs | |
| parent | 3671a4e07565c86f8071fb2309f463aeaf684ba3 (diff) | |
| download | jellything-774f64c0789529884dd7a5232f190e347ad29532.tar jellything-774f64c0789529884dd7a5232f190e347ad29532.tar.bz2 jellything-774f64c0789529884dd7a5232f190e347ad29532.tar.zst | |
move locale code to own crate
Diffstat (limited to 'server/src/main.rs')
| -rw-r--r-- | server/src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/main.rs b/server/src/main.rs index 8b0c128..e17083b 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -7,6 +7,7 @@ #![allow(clippy::needless_borrows_for_generic_args)] #![recursion_limit = "4096"] +use crate::logger::setup_logger; use config::load_config; use log::{error, info, warn}; use routes::build_rocket; @@ -18,6 +19,7 @@ pub mod api; pub mod compat; pub mod config; pub mod helper; +pub mod logger; pub mod logic; pub mod routes; pub mod ui; @@ -41,7 +43,7 @@ static CONF: LazyLock<Config> = LazyLock::new(|| { #[rocket::main] async fn main() { - enable_logging(); + setup_logger(); info!("loading config..."); if let Err(e) = load_config().await { error!("error {e:?}"); @@ -49,7 +51,7 @@ async fn main() { } #[cfg(feature = "bypass-auth")] - log::warn!("authentification bypass enabled"); + logger::warn!("authentification bypass enabled"); if let Err(e) = create_admin_account() { error!("failed to create admin account: {e:?}"); |