1👍
✅
Update 2018-02-09: this answer is no longer valid – nowadays development server messages go through logging subsystem – see this file. The easiest way to filter out 2xx messages seems to be not printing info
loglevel. Note that this will also remove other output you might want to have.
It seems there is currently no options for configuring this in native django way. See this file for more information. Log entries are written directly to stderr
, instead of through Django logging subsystem, so log filters are not usable.
To print everything except 200
responses, you could use
./manage.py runserver 2>&1 | grep -v " 200 "
2>&1
redirectsstderr
tostdout
.-v
for grep inverses matches (outputs only lines not matching the expression)" 200 "
is search expression for grep.
👤Olli
Source:stackexchange.com