summaryrefslogtreecommitdiff
path: root/common/rust/src/config.rs
diff options
context:
space:
mode:
authorMatthieu <matthieu@developershouse.xyz>2021-10-18 13:29:07 +0400
committerMatthieu <matthieu@developershouse.xyz>2021-10-18 13:29:07 +0400
commit9023aa354902844b7d6100f55c3064afedd88966 (patch)
tree195ddb0e3d3ffecf93f1a060325e429dd2356c3e /common/rust/src/config.rs
parentb94b0552f81e667bec31352901bbc8c76f1b4216 (diff)
parenta80124cfe207cf99fb170d1050b4f609c6a169d3 (diff)
Merge branch 'nats-structs-discord-gateway'
Diffstat (limited to 'common/rust/src/config.rs')
-rw-r--r--common/rust/src/config.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/rust/src/config.rs b/common/rust/src/config.rs
index e4dbade..327f6f8 100644
--- a/common/rust/src/config.rs
+++ b/common/rust/src/config.rs
@@ -22,6 +22,7 @@ impl<T> Settings<T>
where
T: Deserialize<'static> + std::default::Default + Clone,
{
+
/// Initializes a new configuration like the other components of nova
/// And starts the prometheus metrics server if needed.
pub fn new(service_name: &str) -> Result<Settings<T>, ConfigError> {
@@ -42,7 +43,9 @@ where
let mut config: Settings<T> = default.clone().try_into().unwrap();
// try to load the config
- config.config = default.get::<T>(&service_name).unwrap();
+ config.config = default.get::<T>(service_name).unwrap();
+ // todo(MatthieuCodder): the following line was not present in the conflict
+ // pretty_env_logger::init();
// start the monitoring system if needed
crate::monitoring::start_monitoring(&config.monitoring);