Skip to content
Snippets Groups Projects
Commit 7ddf08e8 authored by 🥺's avatar 🥺 :transgender_flag: Committed by 🥺
Browse files

filter out "config" as it's an expected config option


this seems to exist when using `CONDUIT_CONFIG`
environment variable, this is expected.

Signed-off-by: default avatarstrawberry <strawberry@puppygock.gay>
parent 6996d63a
No related branches found
No related tags found
No related merge requests found
...@@ -176,7 +176,9 @@ pub fn warn_deprecated(&self) { ...@@ -176,7 +176,9 @@ pub fn warn_deprecated(&self) {
/// iterates over all the catchall keys (unknown config options) and warns if there are any. /// iterates over all the catchall keys (unknown config options) and warns if there are any.
pub fn warn_unknown_key(&self) { pub fn warn_unknown_key(&self) {
debug!("Checking for unknown config keys"); debug!("Checking for unknown config keys");
for key in self.catchall.keys() { for key in self.catchall.keys().filter(
|key| "config".to_owned().ne(key.to_owned()), /* "config" is expected */
) {
warn!("Config parameter \"{}\" is unknown to conduwuit.", key); warn!("Config parameter \"{}\" is unknown to conduwuit.", key);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment