improvement: better logging
Use CONDUIT_LOG or the log setting in the config
This commit is contained in:
parent
46d8f36a2c
commit
1d00a8c41f
5 changed files with 18 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue