python - Periodic Django Logs in Terminal -
i new django , question may seem easy. in terminal "python manage.py runserver" executed, following logs periodically appear.
[30/sep/2015 02:36:02] "get /messages/check/?_=1443574208652 http/1.1" 200 1 [30/sep/2015 02:36:08] "get /notifications/check/?_=1443574208653 http/1.1" 200 1 [30/sep/2015 02:36:08] "get /feeds/update/?first_feed=13&last_feed=6&feed_source=all&_=1443574208655 http/1.1" 200 173 [30/sep/2015 02:36:08] "get /feeds/check/?last_feed=13&feed_source=all&_=1443574208654 http/1.1" 200 1 [30/sep/2015 02:36:39] "get /notifications/check/?_=1443574208656 http/1.1" 200 1 [30/sep/2015 02:36:39] "get /feeds/check/?last_feed=13&feed_source=all&_=1443574208658 http/1.1" 200 1 [30/sep/2015 02:36:39] "get /feeds/update/?first_feed=13&last_feed=6&feed_source=all&_=1443574208657 http/1.1" 200 173 [30/sep/2015 02:37:03] "get /messages/check/?_=1443574208659 http/1.1" 200 1
my django virtual environment follows:
bleach==1.4 dj-database-url==0.3.0 dj-static==0.0.6 django==1.6.5 gunicorn==19.3.0 html5lib==0.9999999 markdown==2.4.1 pillow==2.4.0 psycopg2==2.6.1 python-decouple==2.2 six==1.9.0 south==0.8.4 static3==0.6.1 unipath==1.0
questions are:
why logs periodically appear? guess there background task running.but celery package not used here.
how configure logs, example, displaying 1 more logs such as:
/followers/check/?_=9896886900907 http/1.1
what "?_" , long string of numbers stand for? can understand "?first_feed=13" means querying parameter in django request object.
get /notifications/check/?_=1443574208656
when django run in development mode (with runserver
) prints line http requests received console.
all of them coming outside, browsers, feed readers... parameters wondering query parameters. ?
delimiter so, _
key of argument.
in development mode logging defined default. if want have logging on production system or more logging, read https://docs.djangoproject.com/en/1.8/topics/logging/ .
Comments
Post a Comment