mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-10-22 14:21:19 +00:00
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: strawberry <strawberry@puppygock.gay>
This commit is contained in:
1 parent
6996d63a02
commit
7ddf08e8b7
1 file changed
+3
-1
+3
-1
@@ -176,7 +176,9 @@ pub fn warn_deprecated(&self) {
|
||||
/// iterates over all the catchall keys (unknown config options) and warns if there are any.
|
||||
pub fn warn_unknown_key(&self) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user