crawlee-python icon indicating copy to clipboard operation
crawlee-python copied to clipboard

Fix: Removed indentation from statistics logging

Open TymeeK opened this issue 7 months ago • 4 comments

Description

The purpose of the PR is to fix the indentation of statistics logging. It was originally 8 space indentation but now it is changed to be all on one line.

Issues

This fixes issue #306

Testing

I went through the unit test files and logged out what the output would be for the statistics loggin.

Example:

[crawlee.basic_crawler.basic_crawler] INFO  Final request statistics: {"requests_finished": 3, "requests_failed": 0, "retry_histogram": [3], "request_avg_failed_duration": null, "request_avg_finished_duration": 0.000984, "requests_finished_per_minute": 7348, "requests_failed_per_minute": 0, "request_total_duration": 0.002951, "requests_total": 3, "crawler_runtime": 0.024498}

Checklist

  • [ ] Changes are described in the CHANGELOG.md
  • [x] CI passed

TymeeK avatar Jul 17 '24 23:07 TymeeK