mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
logging: exception is a magic keyword
This commit is contained in:
parent
464aa201e4
commit
e141543667
@ -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…
x
Reference in New Issue
Block a user