summaryrefslogtreecommitdiff
path: root/coverage/sqldata.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/sqldata.py')
-rw-r--r--coverage/sqldata.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/coverage/sqldata.py b/coverage/sqldata.py
index fb2279c9..738fccef 100644
--- a/coverage/sqldata.py
+++ b/coverage/sqldata.py
@@ -199,6 +199,8 @@ class CoverageSqliteData(SimpleReprMixin):
def set_context(self, context):
"""Set the current context for future `add_lines` etc."""
+ if self._debug and self._debug.should('dataop'):
+ self._debug.write("Setting context: %r" % (context,))
self._start_using()
context = context or ""
with self._connect() as con: