Elide js element debug string
This commit is contained in:
parent
19d31ac201
commit
23e7b3f551
@ -402,7 +402,10 @@ class WebEngineElements(browsertab.AbstractElements):
|
||||
Called with a WebEngineElement or None.
|
||||
js_elem: The element serialized from javascript.
|
||||
"""
|
||||
log.webview.debug("Got element from JS: {!r}".format(js_elem))
|
||||
debug_str = ('None' if js_elem is None
|
||||
else utils.elide(repr(js_elem), 100))
|
||||
log.webview.debug("Got element from JS: {}".format(debug_str))
|
||||
|
||||
if js_elem is None:
|
||||
callback(None)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user