summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README8
1 files changed, 7 insertions, 1 deletions
diff --git a/README b/README
index bc5b55f..0371b28 100644
--- a/README
+++ b/README
@@ -188,10 +188,16 @@ Debugging factory_boy
"""""""""""""""""""""
Debugging factory_boy can be rather complex due to the long chains of calls.
-Detailed logging is available through the ``factory`` logger:
+Detailed logging is available through the ``factory`` logger.
+
+A helper, :meth:`factory.debug()`, is available to ease debugging:
.. code-block:: python
+ with factory.debug():
+ obj = TestModel2Factory()
+
+
import logging
logger = logging.getLogger('factory')
logger.addHandler(logging.StreamHandler())