Skip to content

Commit e034a2e

Browse files
committed
Technical feedback
1 parent 74239de commit e034a2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/logging.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ The follwing example sets the global logging level to ``INFO``:
4242
.. code-block:: python
4343

4444
import logging
45-
logging.getLogger('pymongo').setLevel(logging.INFO)
45+
logging.getLogger("pymongo").setLevel(logging.INFO)
4646

4747
The following example sets the log level on the ``pymongo.command`` component to
4848
``DEBUG``:
4949

5050
.. code-block:: python
5151

5252
import logging
53-
logging.getLogger('pymongo.command').setLevel(logging.DEBUG)
53+
logging.getLogger("pymongo.command").setLevel(logging.DEBUG)
5454

5555
Configuring Truncation
5656
----------------------
@@ -63,4 +63,4 @@ desired length, as shown in the following example:
6363
.. code-block:: python
6464

6565
import os
66-
os.environ('MONGODB_LOG_MAX_DOCUMENT_LENGTH') = 2000
66+
os.environ["MONGODB_LOG_MAX_DOCUMENT_LENGTH"] = "2000"

0 commit comments

Comments
 (0)