This affects the "Cursor not closed explicitly..." message.
The message is at a "warning" level, but the frame inspection added
some expensive overhead to each cursor open. So, avoid that unless we
are at debug mode.
bzr revid: p_christ@hol.gr-20101124094853-0ljr6nebkyya0eui