improvement: better logging

Use CONDUIT_LOG or the log setting in the config
This commit is contained in:
Timo Kösters 2021-03-23 22:01:14 +01:00
parent 46d8f36a2c
commit 1d00a8c41f
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
5 changed files with 18 additions and 7 deletions

View file

@ -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,