Skip to content

Commit

Permalink
TASK: Improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
d-Rickyy-b committed May 7, 2019
1 parent 781d6d0 commit b02cee7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pastepwn/analyzers/genericanalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ def match(self, paste):
result = self.match_func(paste)
except Exception as e:
result = False
logging.getLogger(__name__).warning("Executing custom match function raised an exception! {}".format(e))
logging.getLogger(__name__).warning("Executing custom match function '{}' raised an exception! {}".format(self.match_func.__name__, e))

return result
1 change: 1 addition & 0 deletions pastepwn/scraping/pastebin/pastebinscraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def _body_downloader(self):
self.logger.debug("Queue size: {}".format(self._tmp_paste_queue.qsize()))

if self._stop_event.is_set() or self._exception_event.is_set():
self.logger.debug("Stop or exception event is set!")
self.running = False
break

Expand Down

0 comments on commit b02cee7

Please sign in to comment.