MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / process

Method process

src/core/log/adapter/log_adapter.py:8–20  ·  view source on GitHub ↗
(self, msg, kwargs)

Source from the content-addressed store, hash-verified

6 super().__init__(logger, extra or {})
7
8 def process(self, msg, kwargs):
9 extra_data = self.extra.copy()
10 log_kwargs = {}
11 for key, value in kwargs.items():
12 if key not in ["exc_info", "stack_info", "stacklevel", "extra"]:
13 extra_data[key] = value
14 else:
15 log_kwargs[key] = value
16 if "extra" not in log_kwargs:
17 log_kwargs["extra"] = {}
18 log_kwargs["extra"]["extra_data"] = extra_data
19
20 return msg, log_kwargs

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected