MCPcopy Create free account
hub / github.com/StackStorm/st2 / default

Method default

st2common/st2common/logging/formatters.py:104–110  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

102
103 # pylint: disable=method-hidden
104 def default(self, obj):
105 if isinstance(obj, object):
106 value = serialize_object(obj=obj)
107 return value
108
109 # Let the base class default method raise the TypeError
110 return json.JSONEncoder.default(self, obj)
111
112
113class BaseExtraLogFormatter(logging.Formatter):

Callers

nothing calls this directly

Calls 1

serialize_objectFunction · 0.85

Tested by

no test coverage detected