Skip to content

Commit

Permalink
prime_caches: add version to logging
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Sep 28, 2023
1 parent ef2cc6c commit 9286dec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openeo_aggregator/background/prime_caches.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
setup_logging,
)

import openeo_aggregator.about
from openeo_aggregator.app import get_aggregator_logging_config
from openeo_aggregator.backend import AggregatorBackendImplementation
from openeo_aggregator.config import (
Expand Down Expand Up @@ -110,7 +111,7 @@ def prime_caches(
require_zookeeper_writes: bool = False,
fail_mode: str = FAIL_MODE_FAILFAST,
):
with TimingLogger(title="Prime caches", logger=_log):
with TimingLogger(title=f"Prime caches (version {openeo_aggregator.about.__version__})", logger=_log):
config: AggregatorConfig = get_config(config)
_log.info(f"Using config: {config.get('config_source')=}")

Expand Down

0 comments on commit 9286dec

Please sign in to comment.