3.7.0 to 4.0.0
TOML configuration file¶
Note that a minor 4.0.1 version has been released with small but important changes to take into account if you're migrating to MongooseIM 4.0.
There is a new TOML configuration file: mongooseim.toml
.
The legacy mongooseim.cfg
file is still supported as an alternative, but deprecated.
You are advised to rewrite your configuration file in the TOML format.
Until then, you can still make MongooseIM use the old format by setting the MONGOOSEIM_CONFIG_FORMAT
environment variable to cfg
:
MONGOOSEIM_CONFIG_FORMAT=cfg mongooseimctl start
Changes in hooks¶
If modified the code, e.g. by adding a custom extension module, you might want to update your handlers to the following hooks. You can find them in the mongoose_hooks
module.
- We refactored the MAM (XEP-0313) implementation, replacing the long lists of arguments accepted by the
mam_archive_message
andmam_muc_archive_message
hooks with a more readable key-value structure (a map). - The argument list of the
failed_to_store_message
hook has been changed as a result of code refactoring.
OTP Logger as the logging framework¶
We've transitioned from lager to Logger as our logging framework. No internal changes were introduced, and the default handlers still implement the same behaviour, but the configuration is different, though still done in the same place. To know more, please refer to each framework's documentation.
As an example, for our previous default lager configuration:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
The equivalent Logger configuration is
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|