MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / logentry_to_json

Function logentry_to_json

mitmproxy/tools/web/app.py:212–217  ·  view source on GitHub ↗
(e: log.LogEntry)

Source from the content-addressed store, hash-verified

210
211
212def logentry_to_json(e: log.LogEntry) -> dict:
213 return {
214 "id": id(e), # we just need some kind of id.
215 "message": e.msg,
216 "level": e.level,
217 }
218
219
220class APIError(tornado.web.HTTPError):

Callers 1

getMethod · 0.85

Calls 1

idFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…