diff --git a/debug_toolbar/locale/ca/LC_MESSAGES/django.po b/debug_toolbar/locale/ca/LC_MESSAGES/django.po index 2ed99a0e9..bdeaffd7e 100644 --- a/debug_toolbar/locale/ca/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/ca/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2014-04-25 19:53+0000\n" "Last-Translator: Aymeric Augustin \n" "Language-Team: Catalan (http://www.transifex.com/projects/p/django-debug-" @@ -49,21 +49,6 @@ msgstr "Encapçalaments" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "Entrant" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "" -msgstr[1] "" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "Registre de missatges" - #: panels/profiling.py:140 msgid "Profiling" msgstr "" @@ -210,7 +195,6 @@ msgid "Total: %0.2fms" msgstr "Total: %0.2fms" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -400,27 +384,6 @@ msgstr "Acció" msgid "Variable" msgstr "Variable" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Nivell" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "Canal" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Missatge" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Ubicació" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "Cridar" @@ -629,6 +592,10 @@ msgid_plural "%(payload_count)s files" msgstr[0] "" msgstr[1] "" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Ubicació" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "" @@ -699,7 +666,7 @@ msgid "" "redirect as normal." msgstr "" -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/cs/LC_MESSAGES/django.po b/debug_toolbar/locale/cs/LC_MESSAGES/django.po index dbcb475b8..18070ee8e 100644 --- a/debug_toolbar/locale/cs/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/cs/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2014-04-25 19:53+0000\n" "Last-Translator: Aymeric Augustin \n" "Language-Team: Czech (http://www.transifex.com/projects/p/django-debug-" @@ -51,22 +51,6 @@ msgstr "Záhlaví" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "Protokol" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "%(count)s zpráva" -msgstr[1] "%(count)s zprávy" -msgstr[2] "%(count)s zpráv" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "Zprávy protokolu" - #: panels/profiling.py:140 msgid "Profiling" msgstr "Profilování" @@ -220,7 +204,6 @@ msgid "Total: %0.2fms" msgstr "Celkem: %0.2fms" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -412,27 +395,6 @@ msgstr "Akce" msgid "Variable" msgstr "Proměnná" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Úroveň" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "Kanál" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Zpráva" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Adresa" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "Nebyly protokolovány žádné zprávy." - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "Volání" @@ -648,6 +610,10 @@ msgstr[0] "%(payload_count)s soubor" msgstr[1] "%(payload_count)s soubory" msgstr[2] "%(payload_count)s souborů" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Adresa" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "Zdroj šablony:" @@ -724,7 +690,7 @@ msgstr "" "URL za účelem ladicího zobrazení. Chcete-li přesměrování dokončit, klepněte " "na odkaz výše." -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/de/LC_MESSAGES/django.po b/debug_toolbar/locale/de/LC_MESSAGES/django.po index 2d5fc1bad..7cd10febe 100644 --- a/debug_toolbar/locale/de/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/de/LC_MESSAGES/django.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2021-12-04 17:38+0000\n" "Last-Translator: Tim Schilling\n" "Language-Team: German (http://www.transifex.com/django-debug-toolbar/django-" @@ -50,21 +50,6 @@ msgstr "Header" msgid "History" msgstr "Geschichte" -#: panels/logging.py:81 -msgid "Logging" -msgstr "Logging" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "%(count)s Eintrag" -msgstr[1] "%(count)s Einträge" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "Logeinträge" - #: panels/profiling.py:140 msgid "Profiling" msgstr "Profiling" @@ -210,7 +195,6 @@ msgid "Total: %0.2fms" msgstr "Gesamt: %0.2fms" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -400,27 +384,6 @@ msgstr "Aktion" msgid "Variable" msgstr "Variable" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Level" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "Kanal" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Eintrag" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Ort" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "Keine Logbucheinträge vorhanden" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "Aufruf" @@ -633,6 +596,10 @@ msgid_plural "%(payload_count)s files" msgstr[0] "%(payload_count)s Datei" msgstr[1] "%(payload_count)s Dateien" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Ort" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "Template-Quelle:" @@ -706,7 +673,7 @@ msgstr "" "weiteren Überprüfung abgefangen. Klicken Sie den Link, um wie gewohnt " "weitergeleitet zu werden." -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/en/LC_MESSAGES/django.po b/debug_toolbar/locale/en/LC_MESSAGES/django.po index 8ba101c41..8fafee164 100644 --- a/debug_toolbar/locale/en/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/en/LC_MESSAGES/django.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:25-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2012-03-31 20:10+0000\n" "Last-Translator: \n" "Language-Team: \n" @@ -46,21 +46,6 @@ msgstr "" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "" -msgstr[1] "" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "" - #: panels/profiling.py:140 msgid "Profiling" msgstr "" @@ -206,7 +191,6 @@ msgid "Total: %0.2fms" msgstr "" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -394,27 +378,6 @@ msgstr "" msgid "Variable" msgstr "" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "" @@ -623,6 +586,10 @@ msgid_plural "%(payload_count)s files" msgstr[0] "" msgstr[1] "" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "" @@ -693,7 +660,7 @@ msgid "" "redirect as normal." msgstr "" -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/es/LC_MESSAGES/django.po b/debug_toolbar/locale/es/LC_MESSAGES/django.po index c4cbd14ad..7babef326 100644 --- a/debug_toolbar/locale/es/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/es/LC_MESSAGES/django.po @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2021-10-01 11:10+0000\n" "Last-Translator: Daniel Iglesias \n" "Language-Team: Spanish (http://www.transifex.com/django-debug-toolbar/django-" @@ -53,21 +53,6 @@ msgstr "Encabezados" msgid "History" msgstr "Historial" -#: panels/logging.py:81 -msgid "Logging" -msgstr "Registros" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "%(count)s mensaje" -msgstr[1] "%(count)s mensajes" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "Mensajes del registro" - #: panels/profiling.py:140 msgid "Profiling" msgstr "Análisis de rendimiento" @@ -213,7 +198,6 @@ msgid "Total: %0.2fms" msgstr "Total: %0.2fms" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -403,27 +387,6 @@ msgstr "Acción" msgid "Variable" msgstr "Variable" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Nivel" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "Canal" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Mensaje" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Ubicación" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "No hay mensajes registrados" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "Llamar" @@ -634,6 +597,10 @@ msgid_plural "%(payload_count)s files" msgstr[0] "%(payload_count)s archivo" msgstr[1] "%(payload_count)s archivos" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Ubicación" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "Fuente de plantilla:" @@ -708,7 +675,7 @@ msgstr "" "Usted puede hacer clic en el vínculo de arriba para continuar con el re-" "direccionamiento normalmente." -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/fa/LC_MESSAGES/django.po b/debug_toolbar/locale/fa/LC_MESSAGES/django.po index 8d788e5f9..1c9c1b32f 100644 --- a/debug_toolbar/locale/fa/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/fa/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2021-09-30 18:42+0000\n" "Last-Translator: Ali Soltani \n" "Language-Team: Persian (http://www.transifex.com/django-debug-toolbar/django-" @@ -49,21 +49,6 @@ msgstr "هدر ها" msgid "History" msgstr "تاریخچه" -#: panels/logging.py:81 -msgid "Logging" -msgstr "لاگ" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "" -msgstr[1] "" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "پیام های لاگ" - #: panels/profiling.py:140 msgid "Profiling" msgstr "نمایه سازی" @@ -209,7 +194,6 @@ msgid "Total: %0.2fms" msgstr "" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -401,27 +385,6 @@ msgstr "اکشن" msgid "Variable" msgstr "متغیر" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "سطح" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "کانال" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "پیام" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "مکان" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "پیامی لاگ نشده" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "Call" @@ -630,6 +593,10 @@ msgid_plural "%(payload_count)s files" msgstr[0] "" msgstr[1] "" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "مکان" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "منبع تمپلیت:" @@ -700,7 +667,7 @@ msgid "" "redirect as normal." msgstr "" -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/fi/LC_MESSAGES/django.po b/debug_toolbar/locale/fi/LC_MESSAGES/django.po index 1fb6aad0d..271fe51dc 100644 --- a/debug_toolbar/locale/fi/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/fi/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2014-04-25 19:53+0000\n" "Last-Translator: Aymeric Augustin \n" "Language-Team: Finnish (http://www.transifex.com/projects/p/django-debug-" @@ -49,21 +49,6 @@ msgstr "" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "Loki" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "%(count)s viesti" -msgstr[1] "%(count)s viestiä" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "" - #: panels/profiling.py:140 msgid "Profiling" msgstr "Profilointi" @@ -212,7 +197,6 @@ msgid "Total: %0.2fms" msgstr "" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -402,27 +386,6 @@ msgstr "Tapahtuma" msgid "Variable" msgstr "Muuttuja" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Taso" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "Kanava" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Viesti" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Sijainti" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "Ei viestejä lokissa" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "Kutsu" @@ -633,6 +596,10 @@ msgid_plural "%(payload_count)s files" msgstr[0] "" msgstr[1] "" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Sijainti" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "" @@ -703,7 +670,7 @@ msgid "" "redirect as normal." msgstr "" -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/fr/LC_MESSAGES/django.po b/debug_toolbar/locale/fr/LC_MESSAGES/django.po index 60d32b69c..d376231ed 100644 --- a/debug_toolbar/locale/fr/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/fr/LC_MESSAGES/django.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2021-09-30 09:21+0000\n" "Last-Translator: Colin O'Brien \n" "Language-Team: French (http://www.transifex.com/django-debug-toolbar/django-" @@ -55,21 +55,6 @@ msgstr "En-têtes" msgid "History" msgstr "Historique" -#: panels/logging.py:81 -msgid "Logging" -msgstr "Journaux" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "%(count)s message" -msgstr[1] "%(count)s messages" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "Messages du journal" - #: panels/profiling.py:140 msgid "Profiling" msgstr "Profilage" @@ -215,7 +200,6 @@ msgid "Total: %0.2fms" msgstr "Total : %0.2fms" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -405,27 +389,6 @@ msgstr "Action" msgid "Variable" msgstr "Variable" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Niveau" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "Canal" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Message" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Emplacement" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "Aucun message dans le journal" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "Appel" @@ -638,6 +601,10 @@ msgid_plural "%(payload_count)s files" msgstr[0] "%(payload_count)s fichier" msgstr[1] "%(payload_count)s fichiers" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Emplacement" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "Source du gabarit :" @@ -712,7 +679,7 @@ msgstr "" "pouvez cliquer sur le lien ci-dessus pour continuer normalement avec la " "redirection." -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/he/LC_MESSAGES/django.po b/debug_toolbar/locale/he/LC_MESSAGES/django.po index b077df7c8..fe4a4d772 100644 --- a/debug_toolbar/locale/he/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/he/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2014-04-25 19:53+0000\n" "Last-Translator: Aymeric Augustin \n" "Language-Team: Hebrew (http://www.transifex.com/projects/p/django-debug-" @@ -49,21 +49,6 @@ msgstr "" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "רישום יומן" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "" -msgstr[1] "" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "" - #: panels/profiling.py:140 msgid "Profiling" msgstr "" @@ -209,7 +194,6 @@ msgid "Total: %0.2fms" msgstr "" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -399,27 +383,6 @@ msgstr "פעילות" msgid "Variable" msgstr "משתנה" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "רמה" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "הודעה" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "מקום" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "אין הודעות" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "" @@ -628,6 +591,10 @@ msgid_plural "%(payload_count)s files" msgstr[0] "" msgstr[1] "" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "מקום" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "" @@ -698,7 +665,7 @@ msgid "" "redirect as normal." msgstr "" -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/id/LC_MESSAGES/django.po b/debug_toolbar/locale/id/LC_MESSAGES/django.po index 2d4289eae..bef59b4f1 100644 --- a/debug_toolbar/locale/id/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/id/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2014-04-25 19:53+0000\n" "Last-Translator: Aymeric Augustin \n" "Language-Team: Indonesian (http://www.transifex.com/projects/p/django-debug-" @@ -47,20 +47,6 @@ msgstr "" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "%(count)s pesan" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "" - #: panels/profiling.py:140 msgid "Profiling" msgstr "" @@ -202,7 +188,6 @@ msgid "Total: %0.2fms" msgstr "" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -392,27 +377,6 @@ msgstr "Aksi" msgid "Variable" msgstr "Variabel" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Tingkat" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "Kanal" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Pesan" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Lokasi" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "Tidak ada pesan yang dicatat" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "Panggil" @@ -618,6 +582,10 @@ msgid "%(payload_count)s file" msgid_plural "%(payload_count)s files" msgstr[0] "" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Lokasi" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "" @@ -685,7 +653,7 @@ msgid "" "redirect as normal." msgstr "" -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/it/LC_MESSAGES/django.po b/debug_toolbar/locale/it/LC_MESSAGES/django.po index fffce493f..17c8347c1 100644 --- a/debug_toolbar/locale/it/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/it/LC_MESSAGES/django.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2021-08-14 15:25+0000\n" "Last-Translator: Tim Schilling\n" "Language-Team: Italian (http://www.transifex.com/django-debug-toolbar/django-" @@ -51,21 +51,6 @@ msgstr "Intestazioni" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "Logging" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "%(count)s messaggio" -msgstr[1] "%(count)s messaggi" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "Messaggi di log" - #: panels/profiling.py:140 msgid "Profiling" msgstr "Profilazione" @@ -211,7 +196,6 @@ msgid "Total: %0.2fms" msgstr "Totale: %0.2fms" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -401,27 +385,6 @@ msgstr "Azione" msgid "Variable" msgstr "Variabile" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Livello" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "Canale" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Messaggio" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Location" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "Nessun messaggio registrato" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "Chiamata" @@ -630,6 +593,10 @@ msgid_plural "%(payload_count)s files" msgstr[0] "%(payload_count)s file" msgstr[1] "%(payload_count)s file" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Location" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "Sorgente del template" @@ -703,7 +670,7 @@ msgstr "" "visualizzare il debug, Puoi cliccare sul link sopra per continuare " "normalmente con la redirezione." -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/ja/LC_MESSAGES/django.po b/debug_toolbar/locale/ja/LC_MESSAGES/django.po index 13574bcab..69a059666 100644 --- a/debug_toolbar/locale/ja/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/ja/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2021-08-14 15:25+0000\n" "Last-Translator: Tim Schilling\n" "Language-Team: Japanese (http://www.transifex.com/django-debug-toolbar/" @@ -47,20 +47,6 @@ msgstr "ヘッダー" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "ロギング" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "%(count)s個のメッセージ" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "ログメッセージ" - #: panels/profiling.py:140 msgid "Profiling" msgstr "プロファイル" @@ -201,7 +187,6 @@ msgid "Total: %0.2fms" msgstr "" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -389,27 +374,6 @@ msgstr "" msgid "Variable" msgstr "変数" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "レベル" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "メッセージ" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "ロギングされたメッセージはありません" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "" @@ -613,6 +577,10 @@ msgid "%(payload_count)s file" msgid_plural "%(payload_count)s files" msgstr[0] "" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "" @@ -680,7 +648,7 @@ msgid "" "redirect as normal." msgstr "" -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/nl/LC_MESSAGES/django.po b/debug_toolbar/locale/nl/LC_MESSAGES/django.po index 335bfa00d..c786c936f 100644 --- a/debug_toolbar/locale/nl/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/nl/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2014-04-25 19:53+0000\n" "Last-Translator: Aymeric Augustin \n" "Language-Team: Dutch (http://www.transifex.com/projects/p/django-debug-" @@ -49,21 +49,6 @@ msgstr "" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "%(count)s bericht" -msgstr[1] "%(count)s berichten" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "" - #: panels/profiling.py:140 msgid "Profiling" msgstr "Profilering" @@ -210,7 +195,6 @@ msgid "Total: %0.2fms" msgstr "Totaal: %0.2fms" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -400,27 +384,6 @@ msgstr "Actie" msgid "Variable" msgstr "Parameter" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Niveau" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "Kanaal" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Bericht" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Locatie" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "Geen berichten gelogd" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "Oproepen" @@ -631,6 +594,10 @@ msgid_plural "%(payload_count)s files" msgstr[0] "" msgstr[1] "" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Locatie" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "" @@ -701,7 +668,7 @@ msgid "" "redirect as normal." msgstr "" -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/pl/LC_MESSAGES/django.po b/debug_toolbar/locale/pl/LC_MESSAGES/django.po index b565374f1..1e33de287 100644 --- a/debug_toolbar/locale/pl/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/pl/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2014-04-25 19:53+0000\n" "Last-Translator: Aymeric Augustin \n" "Language-Team: Polish (http://www.transifex.com/projects/p/django-debug-" @@ -52,22 +52,6 @@ msgstr "" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "Logi" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "%(count)s wiadomość" -msgstr[1] "%(count)s wiadomości" -msgstr[2] "%(count)s wiadomości" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "" - #: panels/profiling.py:140 msgid "Profiling" msgstr "Profilowanie" @@ -221,7 +205,6 @@ msgid "Total: %0.2fms" msgstr "" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -411,27 +394,6 @@ msgstr "Akcja" msgid "Variable" msgstr "Zmienna" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Poziom" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "Kanał" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Wiadomość" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Lokalizacja" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "Nie zalogowano żadnych wiadomości" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "Wywołanie" @@ -647,6 +609,10 @@ msgstr[0] "" msgstr[1] "" msgstr[2] "" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Lokalizacja" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "" @@ -720,7 +686,7 @@ msgid "" "redirect as normal." msgstr "" -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/pt/LC_MESSAGES/django.po b/debug_toolbar/locale/pt/LC_MESSAGES/django.po index 0567dfac5..2231187b7 100644 --- a/debug_toolbar/locale/pt/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/pt/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2014-04-25 19:53+0000\n" "Last-Translator: Aymeric Augustin \n" "Language-Team: Portuguese (http://www.transifex.com/projects/p/django-debug-" @@ -49,21 +49,6 @@ msgstr "" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "Registo" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "" -msgstr[1] "" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "" - #: panels/profiling.py:140 msgid "Profiling" msgstr "" @@ -210,7 +195,6 @@ msgid "Total: %0.2fms" msgstr "Total: %0.2fms" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -400,27 +384,6 @@ msgstr "Acção" msgid "Variable" msgstr "Variável" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Nível" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Mensagem" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Localização" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "Nenhuma mensagem registada" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "" @@ -629,6 +592,10 @@ msgid_plural "%(payload_count)s files" msgstr[0] "" msgstr[1] "" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Localização" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "" @@ -699,7 +666,7 @@ msgid "" "redirect as normal." msgstr "" -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/pt_BR/LC_MESSAGES/django.po b/debug_toolbar/locale/pt_BR/LC_MESSAGES/django.po index d1252e63a..a4721e07e 100644 --- a/debug_toolbar/locale/pt_BR/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/pt_BR/LC_MESSAGES/django.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2014-04-25 19:53+0000\n" "Last-Translator: Aymeric Augustin \n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/" @@ -50,21 +50,6 @@ msgstr "Cabeçalhos" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "Logs" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "%(count)s mensagem" -msgstr[1] "%(count)s mensagens" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "Mensagens de log" - #: panels/profiling.py:140 msgid "Profiling" msgstr "Profiling" @@ -214,7 +199,6 @@ msgid "Total: %0.2fms" msgstr "Total: %0.2fms" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -406,27 +390,6 @@ msgstr "Ação" msgid "Variable" msgstr "Variável" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Nível" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "Canal" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Mensagem" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Localização" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "Nenhuma mensagem logada" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "Chamar" @@ -637,6 +600,10 @@ msgid_plural "%(payload_count)s files" msgstr[0] "%(payload_count)s arquivo" msgstr[1] "%(payload_count)s arquivos" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Localização" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "Origem do Template:" @@ -710,7 +677,7 @@ msgstr "" "fins de visualização de depuração. Você pode clicar no link acima para " "continuar com o redirecionamento normalmente." -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/ru/LC_MESSAGES/django.po b/debug_toolbar/locale/ru/LC_MESSAGES/django.po index 43e820234..fbec67100 100644 --- a/debug_toolbar/locale/ru/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/ru/LC_MESSAGES/django.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2021-08-14 15:25+0000\n" "Last-Translator: Tim Schilling\n" "Language-Team: Russian (http://www.transifex.com/django-debug-toolbar/django-" @@ -58,23 +58,6 @@ msgstr "Заголовки" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "Логи" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "%(count)s сообщение" -msgstr[1] "%(count)s сообщений" -msgstr[2] "%(count)s сообщений" -msgstr[3] "%(count)s сообщений" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "Сообщения в логе" - #: panels/profiling.py:140 msgid "Profiling" msgstr "Профилирование" @@ -230,7 +213,6 @@ msgid "Total: %0.2fms" msgstr "Итого: %0.2fms" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -420,27 +402,6 @@ msgstr "Действие" msgid "Variable" msgstr "Переменная" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Уровень" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "Канал" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Сообщение" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Место" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "Сообщений нет" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "Вызов" @@ -660,6 +621,10 @@ msgstr[1] "%(payload_count)s файла" msgstr[2] "%(payload_count)s файлов" msgstr[3] "%(payload_count)s файлов" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Место" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "Источник шаблона:" @@ -738,7 +703,7 @@ msgstr "" "Django Debug Toolbar в перехватил редирект на адрес, указанный выше. Вы " "можете нажать на ссылку, чтобы выполнить переход самостоятельно." -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/sk/LC_MESSAGES/django.po b/debug_toolbar/locale/sk/LC_MESSAGES/django.po index a06fe25e0..52c8ef386 100644 --- a/debug_toolbar/locale/sk/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/sk/LC_MESSAGES/django.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2021-06-24 13:37+0200\n" "Last-Translator: Aymeric Augustin \n" "Language-Team: Slovak (http://www.transifex.com/projects/p/django-debug-" @@ -57,23 +57,6 @@ msgstr "Hlavičky" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "Zápis" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "%(count)s správa" -msgstr[1] "%(count)s správy" -msgstr[2] "%(count)s správy" -msgstr[3] "%(count)s správ" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "Správy zápisu" - #: panels/profiling.py:140 msgid "Profiling" msgstr "Analýza" @@ -232,7 +215,6 @@ msgid "Total: %0.2fms" msgstr "Celkovo: %0.2fms" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -424,27 +406,6 @@ msgstr "Akcia" msgid "Variable" msgstr "Premenná" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Úroveň" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "Kanál" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Správa" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Poloha" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "Žiadne správy neboli zaznamenané" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "Volanie" @@ -665,6 +626,10 @@ msgstr[1] "%(payload_count)s súbory" msgstr[2] "%(payload_count)s súbora" msgstr[3] "%(payload_count)s súborov" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Poloha" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "Zdrojový kód šablóny:" @@ -743,7 +708,7 @@ msgstr "" "Django Debug Toolbar zachytil presmerovanie na vyššie uvedenú URL pre účely " "ladenia. Pre normálne presmerovanie môžete kliknúť na vyššie uvedený odkaz." -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/sv_SE/LC_MESSAGES/django.po b/debug_toolbar/locale/sv_SE/LC_MESSAGES/django.po index a0001b3fb..fce9878ab 100644 --- a/debug_toolbar/locale/sv_SE/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/sv_SE/LC_MESSAGES/django.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2014-04-25 19:53+0000\n" "Last-Translator: Aymeric Augustin \n" "Language-Team: Swedish (Sweden) (http://www.transifex.com/projects/p/django-" @@ -50,21 +50,6 @@ msgstr "" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "%(count)s meddelande" -msgstr[1] "%(count)s meddelanden" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "" - #: panels/profiling.py:140 msgid "Profiling" msgstr "Profilering" @@ -211,7 +196,6 @@ msgid "Total: %0.2fms" msgstr "" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -401,27 +385,6 @@ msgstr "Åtgärd" msgid "Variable" msgstr "Variabel" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Nivå" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Meddelande" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Plats" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "" @@ -632,6 +595,10 @@ msgid_plural "%(payload_count)s files" msgstr[0] "" msgstr[1] "" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Plats" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "" @@ -702,7 +669,7 @@ msgid "" "redirect as normal." msgstr "" -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/uk/LC_MESSAGES/django.po b/debug_toolbar/locale/uk/LC_MESSAGES/django.po index 45665aeb0..328de2043 100644 --- a/debug_toolbar/locale/uk/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/uk/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2014-04-25 19:53+0000\n" "Last-Translator: Aymeric Augustin \n" "Language-Team: Ukrainian (http://www.transifex.com/projects/p/django-debug-" @@ -52,22 +52,6 @@ msgstr "" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "Логи" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "" -msgstr[1] "" -msgstr[2] "" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "" - #: panels/profiling.py:140 msgid "Profiling" msgstr "" @@ -219,7 +203,6 @@ msgid "Total: %0.2fms" msgstr "" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -409,27 +392,6 @@ msgstr "Подія" msgid "Variable" msgstr "Змінна" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "Рівень" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "Повідомлення" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "Місце" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "Повідомлень немає" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "" @@ -643,6 +605,10 @@ msgstr[0] "" msgstr[1] "" msgstr[2] "" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "Місце" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "" @@ -716,7 +682,7 @@ msgid "" "redirect as normal." msgstr "" -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/locale/zh_CN/LC_MESSAGES/django.po b/debug_toolbar/locale/zh_CN/LC_MESSAGES/django.po index e94665cfb..33659e1f1 100644 --- a/debug_toolbar/locale/zh_CN/LC_MESSAGES/django.po +++ b/debug_toolbar/locale/zh_CN/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Django Debug Toolbar\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-28 09:30-0600\n" +"POT-Creation-Date: 2023-01-20 17:23+0100\n" "PO-Revision-Date: 2014-04-25 19:53+0000\n" "Last-Translator: Aymeric Augustin \n" "Language-Team: Chinese (China) (http://www.transifex.com/projects/p/django-" @@ -47,20 +47,6 @@ msgstr "HTTP 头" msgid "History" msgstr "" -#: panels/logging.py:81 -msgid "Logging" -msgstr "日志" - -#: panels/logging.py:87 -#, python-format -msgid "%(count)s message" -msgid_plural "%(count)s messages" -msgstr[0] "%(count)s 条消息" - -#: panels/logging.py:91 -msgid "Log messages" -msgstr "日志信息" - #: panels/profiling.py:140 msgid "Profiling" msgstr "性能分析" @@ -204,7 +190,6 @@ msgid "Total: %0.2fms" msgstr "总共:%0.2f 毫秒" #: panels/timer.py:36 templates/debug_toolbar/panels/history.html:9 -#: templates/debug_toolbar/panels/logging.html:7 #: templates/debug_toolbar/panels/sql_explain.html:11 #: templates/debug_toolbar/panels/sql_profile.html:12 #: templates/debug_toolbar/panels/sql_select.html:11 @@ -394,27 +379,6 @@ msgstr "功能" msgid "Variable" msgstr "变量" -#: templates/debug_toolbar/panels/logging.html:6 -msgid "Level" -msgstr "级别" - -#: templates/debug_toolbar/panels/logging.html:8 -msgid "Channel" -msgstr "频道" - -#: templates/debug_toolbar/panels/logging.html:9 -msgid "Message" -msgstr "消息" - -#: templates/debug_toolbar/panels/logging.html:10 -#: templates/debug_toolbar/panels/staticfiles.html:44 -msgid "Location" -msgstr "位置" - -#: templates/debug_toolbar/panels/logging.html:26 -msgid "No messages logged" -msgstr "没有消息被记录" - #: templates/debug_toolbar/panels/profiling.html:5 msgid "Call" msgstr "调用" @@ -620,6 +584,10 @@ msgid "%(payload_count)s file" msgid_plural "%(payload_count)s files" msgstr[0] "%(payload_count)s 个文件" +#: templates/debug_toolbar/panels/staticfiles.html:44 +msgid "Location" +msgstr "位置" + #: templates/debug_toolbar/panels/template_source.html:4 msgid "Template source:" msgstr "模板源:" @@ -689,7 +657,7 @@ msgstr "" "Django Debug Toolbar 为了调试目的拦截了一个重定向到上面 URL 的请求。 您可以" "点击上面的链接继续执行重定向操作。" -#: views.py:15 +#: views.py:16 msgid "" "Data for this panel isn't available anymore. Please reload the page and " "retry." diff --git a/debug_toolbar/panels/logging.py b/debug_toolbar/panels/logging.py deleted file mode 100644 index ee484a41e..000000000 --- a/debug_toolbar/panels/logging.py +++ /dev/null @@ -1,101 +0,0 @@ -import datetime -import logging - -from django.utils.translation import gettext_lazy as _, ngettext - -from debug_toolbar.panels import Panel -from debug_toolbar.utils import ThreadCollector - -try: - import threading -except ImportError: - threading = None - -MESSAGE_IF_STRING_REPRESENTATION_INVALID = "[Could not get log message]" - - -class LogCollector(ThreadCollector): - def collect(self, item, thread=None): - # Avoid logging SQL queries since they are already in the SQL panel - # TODO: Make this check whether SQL panel is enabled - if item.get("channel", "") == "django.db.backends": - return - super().collect(item, thread) - - -class ThreadTrackingHandler(logging.Handler): - def __init__(self, collector): - logging.Handler.__init__(self) - self.collector = collector - - def emit(self, record): - try: - message = record.getMessage() - except Exception: - message = MESSAGE_IF_STRING_REPRESENTATION_INVALID - - record = { - "message": message, - "time": datetime.datetime.fromtimestamp(record.created), - "level": record.levelname, - "file": record.pathname, - "line": record.lineno, - "channel": record.name, - } - self.collector.collect(record) - - -# Preserve Python's fallback log mechanism before adding ThreadTrackingHandler. - -# If the root logger has no handlers attached then everything that reaches it goes -# to the "handler of last resort". -# So a Django app that doesn't explicitly configure the root logger actually logs -# through logging.lastResort. -# However, logging.lastResort is not used after ThreadTrackingHandler gets added to -# the root logger below. This means that users who have LoggingPanel enabled might -# find their logs are gone from their app as soon as they install DDT. -# Explicitly adding logging.lastResort to logging.root's handler sidesteps this -# potential confusion. -# Note that if root has already been configured, or logging.lastResort has been -# removed, then the configuration is unchanged, so users who configured their -# logging aren't exposed to the opposite confusion of seeing extra log lines from -# their app. -if not logging.root.hasHandlers() and logging.lastResort is not None: - logging.root.addHandler(logging.lastResort) - -# We don't use enable/disable_instrumentation because logging is global. -# We can't add thread-local logging handlers. Hopefully logging is cheap. - -collector = LogCollector() -logging_handler = ThreadTrackingHandler(collector) -logging.root.addHandler(logging_handler) - - -class LoggingPanel(Panel): - template = "debug_toolbar/panels/logging.html" - - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - self._records = {} - - nav_title = _("Logging") - - @property - def nav_subtitle(self): - stats = self.get_stats() - record_count = len(stats["records"]) if stats else None - return ngettext("%(count)s message", "%(count)s messages", record_count) % { - "count": record_count - } - - title = _("Log messages") - - def process_request(self, request): - collector.clear_collection() - return super().process_request(request) - - def generate_stats(self, request, response): - records = collector.get_collection() - self._records[threading.current_thread()] = records - collector.clear_collection() - self.record_stats({"records": records}) diff --git a/debug_toolbar/settings.py b/debug_toolbar/settings.py index 5ea904ad1..d20d11c44 100644 --- a/debug_toolbar/settings.py +++ b/debug_toolbar/settings.py @@ -1,3 +1,4 @@ +import warnings from functools import lru_cache from django.conf import settings @@ -64,7 +65,6 @@ def get_config(): "debug_toolbar.panels.templates.TemplatesPanel", "debug_toolbar.panels.cache.CachePanel", "debug_toolbar.panels.signals.SignalsPanel", - "debug_toolbar.panels.logging.LoggingPanel", "debug_toolbar.panels.redirects.RedirectsPanel", "debug_toolbar.panels.profiling.ProfilingPanel", ] @@ -76,6 +76,14 @@ def get_panels(): PANELS = list(settings.DEBUG_TOOLBAR_PANELS) except AttributeError: PANELS = PANELS_DEFAULTS + + logging_panel = "debug_toolbar.panels.logging.LoggingPanel" + if logging_panel in PANELS: + PANELS = [panel for panel in PANELS if panel != logging_panel] + warnings.warn( + f"Please remove {logging_panel} from your DEBUG_TOOLBAR_PANELS setting.", + DeprecationWarning, + ) return PANELS diff --git a/debug_toolbar/templates/debug_toolbar/panels/logging.html b/debug_toolbar/templates/debug_toolbar/panels/logging.html deleted file mode 100644 index 54fe3bebe..000000000 --- a/debug_toolbar/templates/debug_toolbar/panels/logging.html +++ /dev/null @@ -1,27 +0,0 @@ -{% load i18n %} -{% if records %} - - - - - - - - - - - - {% for record in records %} - - - - - - - - {% endfor %} - -
{% trans "Level" %}{% trans "Time" %}{% trans "Channel" %}{% trans "Message" %}{% trans "Location" %}
{{ record.level }}{{ record.time|date:"h:i:s m/d/Y" }}{{ record.channel|default:"-" }}{{ record.message|linebreaksbr }}{{ record.file }}:{{ record.line }}
-{% else %} -

{% trans "No messages logged" %}.

-{% endif %} diff --git a/docs/changes.rst b/docs/changes.rst index 37587d7b7..dfd7b7048 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -9,6 +9,10 @@ Pending * Use ``TOOLBAR_LANGUAGE`` setting when rendering individual panels that are loaded via AJAX. * Add decorator for rendering toolbar views with ``TOOLBAR_LANGUAGE``. +* Removed the logging panel. The panel's implementation was too complex, caused + memory leaks and sometimes very verbose and hard to silence output in some + environments (but not others). The maintainers judged that time and effort is + better invested elsewhere. 3.8.1 (2022-12-03) ------------------ diff --git a/docs/configuration.rst b/docs/configuration.rst index 0aa7891a0..86cb65ce4 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -31,7 +31,6 @@ default value is:: 'debug_toolbar.panels.templates.TemplatesPanel', 'debug_toolbar.panels.cache.CachePanel', 'debug_toolbar.panels.signals.SignalsPanel', - 'debug_toolbar.panels.logging.LoggingPanel', 'debug_toolbar.panels.redirects.RedirectsPanel', 'debug_toolbar.panels.profiling.ProfilingPanel', ] diff --git a/docs/panels.rst b/docs/panels.rst index 795cb96a9..519571574 100644 --- a/docs/panels.rst +++ b/docs/panels.rst @@ -97,13 +97,6 @@ Signal List of signals and receivers. -Logging -~~~~~~~ - -.. class:: debug_toolbar.panels.logging.LoggingPanel - -Logging output via Python's built-in :mod:`logging` module. - Redirects ~~~~~~~~~ diff --git a/tests/panels/test_history.py b/tests/panels/test_history.py index 326fb55b6..2e0aa2179 100644 --- a/tests/panels/test_history.py +++ b/tests/panels/test_history.py @@ -77,7 +77,6 @@ class HistoryViewsTestCase(IntegrationTestCase): "TemplatesPanel", "CachePanel", "SignalsPanel", - "LoggingPanel", "ProfilingPanel", } diff --git a/tests/panels/test_logging.py b/tests/panels/test_logging.py deleted file mode 100644 index 70c2c7bd5..000000000 --- a/tests/panels/test_logging.py +++ /dev/null @@ -1,96 +0,0 @@ -import logging -from unittest.mock import patch - -from debug_toolbar.panels.logging import ( - MESSAGE_IF_STRING_REPRESENTATION_INVALID, - collector, -) - -from ..base import BaseTestCase -from ..views import regular_view - - -class LoggingPanelTestCase(BaseTestCase): - panel_id = "LoggingPanel" - - def setUp(self): - super().setUp() - self.logger = logging.getLogger(__name__) - collector.clear_collection() - - # Assume the root logger has been configured with level=DEBUG. - # Previously DDT forcefully set this itself to 0 (NOTSET). - logging.root.setLevel(logging.DEBUG) - - def test_happy_case(self): - def view(request): - self.logger.info("Nothing to see here, move along!") - return regular_view(request, "logging") - - self._get_response = view - response = self.panel.process_request(self.request) - self.panel.generate_stats(self.request, response) - records = self.panel.get_stats()["records"] - - self.assertEqual(1, len(records)) - self.assertEqual("Nothing to see here, move along!", records[0]["message"]) - - def test_formatting(self): - def view(request): - self.logger.info("There are %d %s", 5, "apples") - return regular_view(request, "logging") - - self._get_response = view - response = self.panel.process_request(self.request) - self.panel.generate_stats(self.request, response) - records = self.panel.get_stats()["records"] - - self.assertEqual(1, len(records)) - self.assertEqual("There are 5 apples", records[0]["message"]) - - def test_insert_content(self): - """ - Test that the panel only inserts content after generate_stats and - not the process_request. - """ - - def view(request): - self.logger.info("café") - return regular_view(request, "logging") - - self._get_response = view - response = self.panel.process_request(self.request) - # ensure the panel does not have content yet. - self.assertNotIn("café", self.panel.content) - self.panel.generate_stats(self.request, response) - # ensure the panel renders correctly. - content = self.panel.content - self.assertIn("café", content) - self.assertValidHTML(content) - - def test_failing_formatting(self): - class BadClass: - def __str__(self): - raise Exception("Please not stringify me!") - - def view(request): - # should not raise exception, but fail silently - self.logger.debug("This class is misbehaving: %s", BadClass()) - return regular_view(request, "logging") - - self._get_response = view - response = self.panel.process_request(self.request) - self.panel.generate_stats(self.request, response) - records = self.panel.get_stats()["records"] - - self.assertEqual(1, len(records)) - self.assertEqual( - MESSAGE_IF_STRING_REPRESENTATION_INVALID, records[0]["message"] - ) - - @patch("sys.stderr") - def test_fallback_logging(self, mock_stderr): - # make sure the log reaches stderr even though logging set up - # its own handler during its import - self.logger.warning("hello") - mock_stderr.write.assert_called_once_with("hello\n")