#4986 (Unable to configure handler 'mail_admins')
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Kurzbeschreibung
Kinder
Kommentare
- 3 Jahre, 4 Monate ago von Luc Saffre about #4986 (Unable to configure handler 'mail_admins') : OK it is because since 20230529 we call logging..config.dictConfig() during lino.core.site.Site.setup_logging(). The Django default logger config, when activated, accesses settings.DEFAULT_EXCEPTION_REPORTER, which fails at this moment because the settings aren't yet loaded.
- 3 Jahre, 4 Monate ago von Luc Saffre about #4986 (Unable to configure handler 'mail_admins') : I can alos reproduce the issue by saying "getlino list --rst". getlino then imports lino_amici.lib.amici.settings (the first application) and instantiates the "Site" in that module.
- 3 Jahre, 4 Monate ago von Luc Saffre about #4986 (Unable to configure handler 'mail_admins') : It might be because the "public" projects imports the settings from noi1e demo and then overrides SITE, i.e. it creates another instance of the Site class.
- 3 Jahre, 4 Monate ago von Luc Saffre about #4986 (Unable to configure handler 'mail_admins') : I didn't yet understand the reason... @8lurry do you have any idea?
- 3 Jahre, 4 Monate ago von Luc Saffre about #4986 (Unable to configure handler 'mail_admins') : I guess that this is caused by commit 391b0d35eac1498f82e9135459fb749c29393630 (by 8lurry on Mon May 29 15:27:05 2023 +0600) : "using logging module (disable django loggers)"
- 3 Jahre, 4 Monate ago von Luc Saffre about #4986 (Unable to configure handler 'mail_admins') : I am getting this when I say "doctest docs/specs/noi/public.rst".
- 3 Jahre, 4 Monate ago von Luc Saffre about #4986 (Unable to configure handler 'mail_admins') : Created new Ticket #4986 (Unable to configure handler 'mail_admins').