﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
21484	"Document that SQL logging does not include ""framework level"" queries"	Brian May	nobody	"As discussed here https://docs.djangoproject.com/en/dev/topics/logging/ django supports logging of raw SQL queries. ""For example, every SQL statement executed by a request is logged at the DEBUG level to this logger.""

However, at least for mysql, this doesn't include initialization or session management SQL queries.

Using wireshark I see a number of extra queries, that are never logged, like:

{{{
SET NAMES utf8
set autocommit=0
SET SQL_AUTO_IS_NULL = 0
set autocommit=1
set autocommit=0
rollback
set autocommit=1
}}}

I assume ""commit"" is also on this list, however not part of this test.

Being able to see all the queries is important in order to debug obscure problems.

Thanks

"	Bug	closed	Documentation	1.6	Normal	fixed			Accepted	1	0	0	0	0	0
