MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / __str__

Method __str__

pymongo/logger.py:134–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

132 self._redacted = False
133
134 def __str__(self) -> str:
135 self._redact()
136 return "%s" % (
137 json_util.dumps(
138 self._kwargs, json_options=_JSON_OPTIONS, default=lambda o: o.__repr__()
139 )
140 )
141
142 def _is_sensitive(self, doc_name: str) -> bool:
143 is_speculative_authenticate = (

Callers

nothing calls this directly

Calls 2

_redactMethod · 0.95
__repr__Method · 0.45

Tested by

no test coverage detected