Skip to content

Commit 74239de

Browse files
committed
RM feedback
1 parent f19f729 commit 74239de

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/logging.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,9 @@ Configuring Truncation
5858
If you enable logging for the ``pymongo.command`` component, the resulting logs will
5959
be truncated after 1000 bytes by default. You can configure this truncation limit
6060
by setting the ``MONGODB_LOG_MAX_DOCUMENT_LENGTH`` environment variable to your
61-
desired length.
61+
desired length, as shown in the following example:
62+
63+
.. code-block:: python
64+
65+
import os
66+
os.environ('MONGODB_LOG_MAX_DOCUMENT_LENGTH') = 2000

0 commit comments

Comments
 (0)