jw35 / practice-night-support

A web app for managing support for bellringing practice nights
MIT License
2 stars 0 forks source link

Reinstate request logging? #109

Closed jw35 closed 1 year ago

jw35 commented 1 year ago

We seem to have lost any sort of access log - might be useful to have this information available

jw35 commented 1 year ago

Curent logging conf:

<--""
   Level WARNING
   |
   o<--"asyncio"
   |   Level NOTSET so inherits level WARNING
   |
   o<--[concurrent]
   |   |
   |   o<--"concurrent.futures"
   |       Level NOTSET so inherits level WARNING
   |
   o<--"django"
   |   Level INFO
   |   Handler Stream <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>
   |     Level INFO
   |     Filter <django.utils.log.RequireDebugTrue object at 0x104430390>
   |   Handler <AdminEmailHandler (ERROR)>
   |     Level ERROR
   |     Filter <django.utils.log.RequireDebugFalse object at 0x104430450>
   |   |
   |   o<--[django.db]
   |   |   |
   |   |   o<--"django.db.backends"
   |   |       Level NOTSET so inherits level INFO
   |   |       |
   |   |       o<--"django.db.backends.schema"
   |   |           Level NOTSET so inherits level INFO
   |   |
   |   o<--"django.dispatch"
   |   |   Level NOTSET so inherits level INFO
   |   |
   |   o<--"django.request"
   |   |   Level NOTSET so inherits level INFO
   |   |
   |   o<--[django.security]
   |   |   |
   |   |   o<--"django.security.csrf"
   |   |       Level NOTSET so inherits level INFO
   |   |
   |   o   "django.server"
   |   |   Level INFO
   |   |   Propagate OFF
   |   |   Handler Stream <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>
   |   |     Level INFO
   |   |     Formatter <django.utils.log.ServerFormatter object at 0x1044678d0>
   |   |
   |   o<--"django.template"
   |   |   Level NOTSET so inherits level INFO
   |   |
   |   o<--[django.utils]
   |       |
   |       o<--"django.utils.autoreload"
   |           Level NOTSET so inherits level INFO
   |
   o<--"tatsu"
   |   Level DEBUG
   |   Handler Stream <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>
   |     Formatter fmt='%(message)s' datefmt=None
   |
   o<--"webapp"
       Level INFO
       Handler Stream <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
         Level INFO
         Formatter fmt='{name} {message}' datefmt=None
       Handler TimedRotatingFile '/Users/jon/000-jons-stuff/Ringing/practice_night_support/logs/autoperry.log' when='W0' interval=604800 backupCount=4
         Level INFO
         Filter <django.utils.log.RequireDebugFalse object at 0x1038c7b50>
         Formatter fmt='{asctime} {name} {message}' datefmt=None
       |
       o<--"webapp.util"
       |   Level NOTSET so inherits level INFO
       |
       o<--"webapp.views"
           Level NOTSET so inherits level INFO
None
jw35 commented 1 year ago

Actually there may be no point because the Apache frontend logs requests better than Django will.

jw35 commented 1 year ago

Agreed (with myself) - no point