aboutsummaryrefslogtreecommitdiff
path: root/server/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main.rs')
-rw-r--r--server/src/main.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/server/src/main.rs b/server/src/main.rs
index 60b5135..3da0e43 100644
--- a/server/src/main.rs
+++ b/server/src/main.rs
@@ -5,6 +5,7 @@
*/
#![feature(lazy_cell)]
+use crate::routes::ui::admin::log::enable_logging;
use database::Database;
use federation::Federation;
use jellycommon::config::GlobalConfig;
@@ -22,11 +23,7 @@ pub static CONF: Lazy<GlobalConfig> =
Lazy::new(|| serde_json::from_reader(File::open("data/config.json").unwrap()).unwrap());
fn main() {
- env_logger::builder()
- .filter_level(log::LevelFilter::Info)
- .parse_env("LOG")
- .init();
-
+ enable_logging();
#[cfg(feature = "bypass-auth")]
log::warn!("authentification bypass enabled");