mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-07-26 08:15:43 -04:00
logging: exception is a magic keyword
This commit is contained in:
parent
464aa201e4
commit
e141543667
3 changed files with 3 additions and 3 deletions
|
@ -180,7 +180,7 @@ class ThreadExceptionGate:
|
||||||
"exception already pending for thread, discarding",
|
"exception already pending for thread, discarding",
|
||||||
pending_exception=self.pending_exception,
|
pending_exception=self.pending_exception,
|
||||||
thread=self.thread,
|
thread=self.thread,
|
||||||
exception=e,
|
discarded_exception=e,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.pending_exception = e
|
self.pending_exception = e
|
||||||
|
|
|
@ -292,7 +292,7 @@ class WebsockReceiverThread(threading.Thread):
|
||||||
message["params"]["message"]["text"],
|
message["params"]["message"]["text"],
|
||||||
)
|
)
|
||||||
elif message["method"] == "Runtime.exceptionThrown":
|
elif message["method"] == "Runtime.exceptionThrown":
|
||||||
self.logger.debug("uncaught exception", exception=message)
|
self.logger.debug("uncaught exception", message=message)
|
||||||
elif message["method"] == "Page.javascriptDialogOpening":
|
elif message["method"] == "Page.javascriptDialogOpening":
|
||||||
self._javascript_dialog_opening(message)
|
self._javascript_dialog_opening(message)
|
||||||
elif (
|
elif (
|
||||||
|
|
|
@ -122,6 +122,6 @@ def is_permitted_by_robots(site, url, proxy=None):
|
||||||
structlog.get_logger(logger_name=__name__).warning(
|
structlog.get_logger(logger_name=__name__).warning(
|
||||||
"returning true (permitted) after problem fetching " "robots.txt",
|
"returning true (permitted) after problem fetching " "robots.txt",
|
||||||
url=url,
|
url=url,
|
||||||
exception=e,
|
raised_exception=e,
|
||||||
)
|
)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue