add confirm option + error for open reg, remove false_fn, change rocksdb default log level to warn #28
No reviewers
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "open-reg-confirmation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this option and start warning/error will make sure the user is fully aware if their server is configured for open reg. remove false_fn as just default always evaluates to false, and move default rocksdb log level to warn as info is still outputting useless db stats to LOG file.
Solves https://github.com/girlbossceo/conduwuit/issues/23
This should probably be a
warn!()Does this actually get called anywhere?
No, though I think there are a fair amount of options that have functions like these that never get called anywhere. I can remove it here but might need to clean these up, I always added them there just to follow the style of adding new config options.
I made it an error to make it more obvious in logs, and just in case they only log errors. Considered just doing
printlnor something.It's not technically an error to configure your HS this way. Using
println!()probably isn't great in the case of more advanced logging configurations that deal directly withtracing, it might get lost. I think the option's name should make it clear enough.I'm gonna leave this as error because we do shutdown (return) here and the admin will need to know why. I'll drop the 2nd one down to warn.