mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
config backend log level from env
This commit is contained in:
parent
48e9e75cc7
commit
f90e3b63cd
@ -135,8 +135,9 @@ fn user_scope() -> Scope {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn init_app_context(configuration: &Settings) -> AppContext {
|
pub async fn init_app_context(configuration: &Settings) -> AppContext {
|
||||||
|
let level = std::env::var("RUST_LOG").unwrap_or("info".to_owned());
|
||||||
let _ = crate::services::log::Builder::new("flowy-server")
|
let _ = crate::services::log::Builder::new("flowy-server")
|
||||||
.env_filter("Trace")
|
.env_filter(&level)
|
||||||
.build();
|
.build();
|
||||||
let pg_pool = get_connection_pool(&configuration.database)
|
let pg_pool = get_connection_pool(&configuration.database)
|
||||||
.await
|
.await
|
||||||
|
Loading…
x
Reference in New Issue
Block a user