improvement: better logging
Use CONDUIT_LOG or the log setting in the config
This commit is contained in:
@@ -46,6 +46,8 @@ pub struct Config {
|
||||
jwt_secret: Option<String>,
|
||||
#[serde(default = "Vec::new")]
|
||||
trusted_servers: Vec<Box<ServerName>>,
|
||||
#[serde(default = "default_log")]
|
||||
pub log: String,
|
||||
}
|
||||
|
||||
fn false_fn() -> bool {
|
||||
@@ -68,6 +70,10 @@ fn default_max_concurrent_requests() -> u16 {
|
||||
4
|
||||
}
|
||||
|
||||
fn default_log() -> String {
|
||||
"info,rocket=off,_=off,sled=off".to_owned()
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct Database {
|
||||
pub globals: globals::Globals,
|
||||
|
||||
Reference in New Issue
Block a user