From e383fd804c8d3ee2333f8dc522d538411fe0ea18 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Tue, 1 Oct 2024 14:30:39 -0400 Subject: [PATCH] Increase logging slow histograms --- CHANGELOG.md | 1 + large_image/tilesource/base.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18c732ddd..202b0e8c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ - Handle a rasterio deprecation ([#1655](../../pull/1655)) - Handle a variation in a bioformats exception ([#1656](../../pull/1656)) +- Increase logging slow histograms ([#1658](../../pull/1658)) ### Bug Fixes diff --git a/large_image/tilesource/base.py b/large_image/tilesource/base.py index ea02dfce8..633eaa88b 100644 --- a/large_image/tilesource/base.py +++ b/large_image/tilesource/base.py @@ -572,7 +572,8 @@ def histogram( # noqa for itile in self.tileIterator(format=TILE_FORMAT_NUMPY, **kwargs): if time.time() - lastlog > 10: self.logger.info( - 'Calculating histogram min/max %d/%d', + 'Calculating histogram min/max for frame %d, tile %d/%d', + kwargs.get('frame', 0), itile['tile_position']['position'], itile['iterator_range']['position']) lastlog = time.time() tile = itile['tile']