MCPcopy Create free account
hub / github.com/dwavesystems/dwave-cloud-client / format

Method format

dwave/cloud/utils/logging.py:72–78  ·  view source on GitHub ↗
(self, record: logging.LogRecord)

Source from the content-addressed store, hash-verified

70 """Encode record dict as JSON (str)."""
71
72 def format(self, record: logging.LogRecord) -> str:
73 super().format(record)
74 # filter out message template and potentially unserializable args
75 rec = record.__dict__.copy()
76 del rec['args']
77 del rec['msg']
78 return orjson.dumps(rec).decode('utf-8')
79
80
81class BinaryFormatter(logging.Formatter):

Callers 15

__init__Method · 0.45
_sampleMethod · 0.45
inspectFunction · 0.45
_get_client_solverFunction · 0.45
outputFunction · 0.45
solversFunction · 0.45
uploadFunction · 0.45
installFunction · 0.45
_install_contrib_packageFunction · 0.45
dispatch_eventFunction · 0.45
__getitem__Method · 0.45
get_solversMethod · 0.45

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected