[Django] #30554: Excessive logging by autoreload in v 2.2.1 and 2.2.2

455 views
Skip to first unread message

Django

unread,
Jun 7, 2019, 11:15:28 AM6/7/19
to django-...@googlegroups.com
#30554: Excessive logging by autoreload in v 2.2.1 and 2.2.2
-----------------------------------------+------------------------
Reporter: Phoebe Bright | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
With these two versions I get over 3000 lines of logging by autoreload.py.
It looks like this::


{{{
DEBUG 2019-06-07 09:47:15,927 autoreload Watching dir
/Users/phoebe/venv/skorie3/lib/python3.6/site-
packages/import_export/locale with glob **/*.mo.
DEBUG 2019-06-07 09:47:15,939 autoreload Watching dir
/Users/phoebe/venv/skorie3/lib/python3.6/site-packages/imagekit/locale
with glob **/*.mo.
DEBUG 2019-06-07 09:47:15,945 autoreload Watching dir
/Users/phoebe/venv/skorie3/lib/python3.6/site-
packages/django_social_share/locale with glob **/*.mo.
DEBUG 2019-06-07 09:47:15,953 autoreload Watching dir
/Users/phoebe/Development/skorie/obstacles/locale with glob **/*.mo.
System check identified no issues (0 silenced).
June 07, 2019 - 09:47:18
Django version 2.2.2, using settings 'config.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
DEBUG 2019-06-07 09:47:18,990 autoreload File
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-
dynload/_decimal.cpython-36m-darwin.so first seen with mtime 1545635091.0
DEBUG 2019-06-07 09:47:18,996 autoreload File
/Users/phoebe/venv/skorie3/lib/python3.6/site-
packages/tablib/packages/__init__.py first seen with mtime
1559667881.475002
DEBUG 2019-06-07 09:47:18,996 autoreload File
/Users/phoebe/venv/skorie3/lib/python3.6/site-
packages/reportlab/pdfbase/ttfonts.py first seen with mtime
1559667875.595854
DEBUG 2019-06-07 09:47:18,996 autoreload File
/Users/phoebe/venv/skorie3/lib/python3.6/site-
packages/stripe/api_resources/sku.py first seen with mtime
1559667881.135201
}}}

3000 more lines like this follow.

Downgrading back to 2.2 and the logging is not displayed. The change was
made here to add logging:
https://github.com/django/django/commit/6754bffa2b2df15a741008aa611c1bb0e8dff22b

Is there a way, or could a way be added, to turn this logging off?

--
Ticket URL: <https://code.djangoproject.com/ticket/30554>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 10, 2019, 2:01:54 AM6/10/19
to django-...@googlegroups.com
#30554: Excessive logging by autoreload in v 2.2.1 and 2.2.2
-------------------------------+--------------------------------------

Reporter: Phoebe Bright | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.2
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by felixxm):

* cc: Tom Forbes (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/30554#comment:1>

Django

unread,
Jun 10, 2019, 3:31:57 AM6/10/19
to django-...@googlegroups.com
#30554: Excessive logging by autoreload in v 2.2.1 and 2.2.2
-------------------------------+--------------------------------------

Reporter: Phoebe Bright | Owner: nobody
Type: Uncategorized | Status: closed
Component: Core (Other) | Version: 2.2
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Carlton Gibson):

* status: new => closed
* component: Uncategorized => Core (Other)
* resolution: => invalid


Comment:

> Is there a way, or could a way be added, to turn this logging off?

This is just standard logging. Adjust the level on the
`django.utils.autoreload` logger:

{{{
'django.utils.autoreload': {
'level': 'INFO',
# ...
}
}}}

See [https://docs.djangoproject.com/en/2.2/topics/logging#configuring-
logging Configuring logging] docs for more details.

--
Ticket URL: <https://code.djangoproject.com/ticket/30554#comment:2>

Django

unread,
Jun 10, 2019, 6:42:52 AM6/10/19
to django-...@googlegroups.com
#30554: Excessive logging by autoreload in v 2.2.1 and 2.2.2
-------------------------------+--------------------------------------

Reporter: Phoebe Bright | Owner: nobody
Type: Uncategorized | Status: closed
Component: Core (Other) | Version: 2.2
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by Tom Forbes):

Do you think it’s worth including a small message when the auto reloader
starts and the logger is configured with the DEBUG level that tells people
how to disable this?

--
Ticket URL: <https://code.djangoproject.com/ticket/30554#comment:3>

Django

unread,
Jun 10, 2019, 6:54:48 AM6/10/19
to django-...@googlegroups.com
#30554: Excessive logging by autoreload in v 2.2.1 and 2.2.2
-------------------------------+--------------------------------------

Reporter: Phoebe Bright | Owner: nobody
Type: Uncategorized | Status: closed
Component: Core (Other) | Version: 2.2
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by Carlton Gibson):

Grrr… Happy to look at a patch, but you had to already opt-in to `DEBUG`
level logging in order to see this output, so, really, for me, it’s ‘’Just
Logging™’’.

("Happy to look at a patch”)

--
Ticket URL: <https://code.djangoproject.com/ticket/30554#comment:4>

Django

unread,
Jun 10, 2019, 1:27:35 PM6/10/19
to django-...@googlegroups.com
#30554: Excessive logging by autoreload in v 2.2.1 and 2.2.2
-------------------------------+--------------------------------------

Reporter: Phoebe Bright | Owner: nobody
Type: Uncategorized | Status: closed
Component: Core (Other) | Version: 2.2
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by Phoebe Bright):

Totally understand now that I have the explanation but no solution found
from googling so some kind of help would be great.

--
Ticket URL: <https://code.djangoproject.com/ticket/30554#comment:5>

Reply all
Reply to author
Forward
0 new messages