Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
212
def
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
220
class
APIError(tornado.web.HTTPError):
Callers
1
get
Method · 0.85
Calls
1
id
Function · 0.50
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…