From f06053b87ea3de9a0fe84fdc33172cbde03a4f9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Sun, 8 Dec 2024 11:27:38 +0100 Subject: [PATCH] doc: Fix logging configuration wording --- canaille/core/configuration.py | 12 ++++++------ canaille/translations/messages.pot | 24 ++++++++++++++---------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/canaille/core/configuration.py b/canaille/core/configuration.py index 3f8f4e17..1791bfd3 100644 --- a/canaille/core/configuration.py +++ b/canaille/core/configuration.py @@ -258,12 +258,12 @@ class CoreSettings(BaseModel): LOGGING: str | dict | None = None """Configures the logging output using the python logging configuration format: - - if :py:data:`None`, everything is logged in the standard error output - the log level is :py:data:`~logging.DEBUG` if the :attr:`~canaille.app.configuration.RootSettings.DEBUG` - setting is :py:data:`True`, else this is :py:data:`~logging.INFO` - - if this is a :class:`dict`, it is passed to :func:`logging.config.dictConfig`: - - if this is a :class:`str`, it is expected to be a file path that will be passed - to :func:`logging.config.fileConfig` + - If :data:`None`, everything is logged in the standard error output. + The log level is :data:`~logging.DEBUG` if the :attr:`~canaille.app.configuration.RootSettings.DEBUG` + setting is :py:data:`True`, else this is :py:data:`~logging.INFO`. + - If this is a :class:`dict`, it is passed to :func:`logging.config.dictConfig`: + - If this is a :class:`str`, it is expected to be a file path that will be passed + to :func:`logging.config.fileConfig`. For example:: diff --git a/canaille/translations/messages.pot b/canaille/translations/messages.pot index 79eb083c..0c6e73e9 100644 --- a/canaille/translations/messages.pot +++ b/canaille/translations/messages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-12-06 14:57+0100\n" +"POT-Creation-Date: 2024-12-08 11:27+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -745,7 +745,7 @@ msgstr "" #: canaille/core/templates/group.html:65 #: canaille/core/templates/profile_edit.html:164 #: canaille/core/templates/profile_settings.html:166 -#: canaille/oidc/templates/client_edit.html:78 +#: canaille/oidc/templates/client_edit.html:81 msgid "Edit" msgstr "" @@ -1468,7 +1468,7 @@ msgstr "" #: canaille/core/templates/partial/users.html:73 #: canaille/oidc/templates/partial/authorization_list.html:31 #: canaille/oidc/templates/partial/client_list.html:35 -#: canaille/oidc/templates/partial/token_list.html:46 +#: canaille/oidc/templates/partial/token_list.html:45 msgid "No item matches your request" msgstr "" @@ -1477,7 +1477,7 @@ msgstr "" #: canaille/core/templates/partial/users.html:75 #: canaille/oidc/templates/partial/authorization_list.html:33 #: canaille/oidc/templates/partial/client_list.html:37 -#: canaille/oidc/templates/partial/token_list.html:48 +#: canaille/oidc/templates/partial/token_list.html:47 msgid "Maybe try with different criteria?" msgstr "" @@ -1486,7 +1486,7 @@ msgstr "" #: canaille/core/templates/partial/users.html:78 #: canaille/oidc/templates/partial/authorization_list.html:36 #: canaille/oidc/templates/partial/client_list.html:40 -#: canaille/oidc/templates/partial/token_list.html:51 +#: canaille/oidc/templates/partial/token_list.html:50 #: canaille/oidc/templates/preconsent_list.html:91 msgid "There is nothing here" msgstr "" @@ -1515,23 +1515,23 @@ msgstr "" msgid "Groups you belong to." msgstr "" -#: canaille/oidc/endpoints/clients.py:46 +#: canaille/oidc/endpoints/clients.py:47 msgid "The client has not been added. Please check your information." msgstr "" -#: canaille/oidc/endpoints/clients.py:81 +#: canaille/oidc/endpoints/clients.py:82 msgid "The client has been created." msgstr "" -#: canaille/oidc/endpoints/clients.py:114 +#: canaille/oidc/endpoints/clients.py:118 msgid "The client has not been edited. Please check your information." msgstr "" -#: canaille/oidc/endpoints/clients.py:144 +#: canaille/oidc/endpoints/clients.py:148 msgid "The client has been edited." msgstr "" -#: canaille/oidc/endpoints/clients.py:152 +#: canaille/oidc/endpoints/clients.py:156 msgid "The client has been deleted." msgstr "" @@ -1698,6 +1698,10 @@ msgid "Issued at" msgstr "" #: canaille/oidc/templates/client_edit.html:75 +msgid "New token" +msgstr "" + +#: canaille/oidc/templates/client_edit.html:78 msgid "Delete the client" msgstr ""