Skip to content

Commit 36f9107

Browse files
committed
Fix log message
1 parent cc0e9d3 commit 36f9107

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/logging.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ The following example sets the log level on the ``pymongo.command`` component to
5353
logging.getLogger("pymongo.command").setLevel(logging.DEBUG)
5454

5555
Messages that the driver outputs will have the log level specified at the beginning of the
56-
message, as shown by this example ``INFO`` message:
56+
message, as shown by this example ``DEBUG`` message:
5757

5858
.. code-block:: none
5959

60-
INFO:pymongo.command:Command insert on namespace test.test_collection
60+
DEBUG:pymongo.command:{"clientId": {"$oid": "..."}, "message": "Command started", "command": "{\"insert\": \"test\", \"ordered\": true, \"lsid\": {\"id\": {\"$binary\": {\"base64\": \"GI7ubVhPSsWd7+OwHEFx6Q==\", \"subType\": \"04\"}}}, \"$db\": \"db\", \"documents\": [{\"x\": 1, \"_id\": {\"$oid\": \"...\"}}]}", "commandName": "insert", "databaseName": "db", "requestId": ..., "operationId": ..., "driverConnectionId": 1, "serverConnectionId": 3554, "serverHost": "localhost", "serverPort": 27017}
6161

6262
Configuring Truncation
6363
----------------------

0 commit comments

Comments
 (0)