MCPcopy
hub / github.com/DropsDevopsOrg/ECommerceCrawlers / errlog_queue

Method errlog_queue

TaobaoCrawler/TK_crawler.py:339–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

337 # self.logMessage.task_done()
338
339 def errlog_queue(self):
340 while True:
341 log = self.errMessage.get()
342 date = datetime.now().strftime("%m-%d %H:%M:%S")
343 self.errorInformation_Window.insert(END, '[{date}][{log}]'.format(date=date, log=log) + '\n')
344 self.errorInformation_Window.see(END)
345
346 def show_logs(self):
347 Tlog_queue = threading.Thread(target=self.log_queue, args=())

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected