7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-11 10:12:21 +00:00
tutor/tutor/commands
Régis Behmo ef189e7f67 fix: better logging during plugins disable
When disable a plugin that set config entried, such as the minio plugin, tutor was logging the following:

    Disabling plugin minio...
        Removed config entry OPENEDX_AWS_ACCESS_KEY=openedx
        Removed config entry OPENEDX_AWS_SECRET_ACCESS_KEY={{ MINIO_AWS_SECRET_ACCESS_KEY }}
        Plugin disabled

The config values were not rendered during printing, which is a shame, because
the whole point of this log line is to warn users of passwords/secrets that are
being removed. Here, we make sure that the config values are properly rendered.
The new logs are now:

    Disabling plugin minio...
        Removing config entry OPENEDX_AWS_ACCESS_KEY=openedx
        Removing config entry OPENEDX_AWS_SECRET_ACCESS_KEY=64vpCVLxhDxBuNjakSrX4CQg
        Plugin disabled
2021-06-22 12:28:58 +02:00
..
__init__.py Move command modules to dedicated directory 2019-05-29 09:53:54 +02:00
cli.py feat: upgrade to open-release/lilac.master 2021-06-08 23:29:12 +02:00
compose.py feat: upgrade to open-release/lilac.master 2021-06-08 23:29:12 +02:00
config.py feat: env only mode for config generation 2021-06-22 12:25:29 +02:00
context.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
dev.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
images.py feat: upgrade to open-release/lilac.master 2021-06-08 23:29:12 +02:00
k8s.py feat: upgrade to open-release/lilac.master 2021-06-08 23:29:12 +02:00
local.py Fix: double pulling mongodb image when upgrading from Koa to Lilac. ref: https://discuss.overhang.io/t/double-pulling-mongo-images-when-upgrading-from-koa-to-lilac/1625 2021-06-22 12:28:26 +02:00
plugins.py fix: better logging during plugins disable 2021-06-22 12:28:58 +02:00