bug: deprecated config parameters are immediately re-warned as unknown #2368

Open
opened 2026-10-15 10:21:50 +00:00 by julian45 · 1 comment
Member

What is the bug?

If a deprecated config parameter is included in the config, continuwuity will first (correctly) report it as deprecated, but then issue a warning for the same parameter being "unknown to conduwuit" immediately after.

homeserver-1    | 2026-10-15T10:17:03.597481Z  WARN conduwuit_core::config::check: Config parameter "otlp_protocol" is deprecated, ignoring.
homeserver-1    | 2026-10-15T10:17:03.601672Z  WARN conduwuit_core::config::check: Read continuwuity config documentation at https://continuwuity.org/configuration.html and check your configuration if any new configuration parameters should be adjusted
homeserver-1    | 2026-10-15T10:17:03.601748Z  WARN conduwuit_core::config::check: Config parameter "otlp_protocol" is unknown to conduwuit, ### ignoring.

Steps to reproduce

  1. Include deprecated config parameter in otherwise valid config via env var or toml
  2. Start homeserver
  3. Observe logs soon after startup

Server name and version

julian45.net 26.9.1 (090203c)

Additional context

Jade indicated in person that this might be a good first issue to tackle for new contributors.

### What is the bug? If a deprecated config parameter is included in the config, continuwuity will first (correctly) report it as deprecated, but then issue a warning for the same parameter being "unknown to conduwuit" *immediately after*. ``` homeserver-1 | 2026-10-15T10:17:03.597481Z WARN conduwuit_core::config::check: Config parameter "otlp_protocol" is deprecated, ignoring. homeserver-1 | 2026-10-15T10:17:03.601672Z WARN conduwuit_core::config::check: Read continuwuity config documentation at https://continuwuity.org/configuration.html and check your configuration if any new configuration parameters should be adjusted homeserver-1 | 2026-10-15T10:17:03.601748Z WARN conduwuit_core::config::check: Config parameter "otlp_protocol" is unknown to conduwuit, ### ignoring. ``` ### Steps to reproduce 1. Include deprecated config parameter in otherwise valid config via env var or toml 2. Start homeserver 3. Observe logs soon after startup ### Server name and version julian45.net 26.9.1 (090203c) ### Additional context Jade indicated in person that this might be a good first issue to tackle for new contributors.
Owner

I think this is technically correct & desired behaviour. Deprecated & removed aren't mutually exclusive - being removed doesn't un-deprecate the field. The deprecation signals to the user that the field is old, and the removal explains that it won't have any effect.
It's a bit clunky but I don't think this is necessarily a bug

I think this is technically correct & desired behaviour. Deprecated & removed aren't mutually exclusive - being removed doesn't un-deprecate the field. The deprecation signals to the user that the field is old, and the removal explains that it won't have any effect. It's a bit clunky but I don't think this is necessarily a bug
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
continuwuation/continuwuity#2368
No description provided.