mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-07-25 07:45:38 -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",
|
||||
pending_exception=self.pending_exception,
|
||||
thread=self.thread,
|
||||
exception=e,
|
||||
discarded_exception=e,
|
||||
)
|
||||
else:
|
||||
self.pending_exception = e
|
||||
|
|
|
@ -292,7 +292,7 @@ class WebsockReceiverThread(threading.Thread):
|
|||
message["params"]["message"]["text"],
|
||||
)
|
||||
elif message["method"] == "Runtime.exceptionThrown":
|
||||
self.logger.debug("uncaught exception", exception=message)
|
||||
self.logger.debug("uncaught exception", message=message)
|
||||
elif message["method"] == "Page.javascriptDialogOpening":
|
||||
self._javascript_dialog_opening(message)
|
||||
elif (
|
||||
|
|
|
@ -122,6 +122,6 @@ def is_permitted_by_robots(site, url, proxy=None):
|
|||
structlog.get_logger(logger_name=__name__).warning(
|
||||
"returning true (permitted) after problem fetching " "robots.txt",
|
||||
url=url,
|
||||
exception=e,
|
||||
raised_exception=e,
|
||||
)
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue