Skip to content

Commit

Permalink
chg: [crawler] improve queued error log
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Jan 16, 2025
1 parent 2a45cfd commit 8404f1f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion bin/crawlers/Crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def get_message(self):
task = capture.get_task()
task.reset()
capture.delete()
self.logger.warning(f'capture QUEUED Timeout, {task.uuid} Send back in queue, start_time={capture_start}')
self.logger.warning(f'capture QUEUED Timeout, {task.uuid}, {task.get_url()} Send back in queue, start_time={capture_start}')
else:
capture.update(status)
print(capture.uuid, crawlers.CaptureStatus(status).name, int(time.time()))
Expand Down
1 change: 0 additions & 1 deletion bin/lib/chats_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,6 @@ def get_ocrs_iterator(filters={}):
for instance_uuid in get_chat_service_instances():
for chat_id in ChatServiceInstance(instance_uuid).get_chats():
chat = Chats.Chat(chat_id, instance_uuid)
print(chat.get_correlation('ocr'))
for ocr in chat.get_correlation('ocr').get('ocr', []):
_, ocr_id = ocr.split(':', 1)
yield Ocr(ocr_id)
Expand Down

0 comments on commit 8404f1f

Please sign in to comment.