From f35f4d0a9d9dfb865dc25750e7c48ae6650b7b1a Mon Sep 17 00:00:00 2001 From: Harrison Nicholls Date: Tue, 28 Jul 2026 16:38:23 +0100 Subject: [PATCH] Use correct logger --- pyproject.toml | 1 + src/fwl_io/fetch.py | 2 +- src/fwl_io/manifest.py | 2 +- src/fwl_io/mirror.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f7d260d..2553a6b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,6 +10,7 @@ readme = "README.md" requires-python = ">=3.11" authors = [ {name = "Tim Lichtenberg", email = "tim.lichtenberg@rug.nl"}, + {name = "Harrison Nicholls", email = "harrison.nicholls@ast.cam.ac.uk"}, ] keywords = [ "Astronomy", diff --git a/src/fwl_io/fetch.py b/src/fwl_io/fetch.py index 1c37de0..e644d0d 100644 --- a/src/fwl_io/fetch.py +++ b/src/fwl_io/fetch.py @@ -75,7 +75,7 @@ from fwl_io.paths import is_offline, resolve_cache_root, resolve_data_root from fwl_io.registry import load_registry, validate_entry_name -log = logging.getLogger(__name__) +log = logging.getLogger('fwl.' + __name__) _LOCK_DIRNAME = '.fwl-io-locks' # How long a fetcher waits for the per-target download lock before giving up and diff --git a/src/fwl_io/manifest.py b/src/fwl_io/manifest.py index 89bf5f2..e139434 100644 --- a/src/fwl_io/manifest.py +++ b/src/fwl_io/manifest.py @@ -61,7 +61,7 @@ from fwl_io.doi import ZENODO_DOI_PATTERN, zenodo_record_id from fwl_io.registry import load_registry -log = logging.getLogger(__name__) +log = logging.getLogger('fwl.' + __name__) # Re-exported so existing importers keep working; the parser lives in doi. __all__ = [ diff --git a/src/fwl_io/mirror.py b/src/fwl_io/mirror.py index 294e1ed..b244dd4 100644 --- a/src/fwl_io/mirror.py +++ b/src/fwl_io/mirror.py @@ -31,7 +31,7 @@ from fwl_io.sync import ZENODO_API, fetch_zenodo_record, zenodo_record_id -log = logging.getLogger(__name__) +log = logging.getLogger('fwl.' + __name__) # Safeguard against tabular-file ingest on upload, so a mirrored tabular file # is stored byte-for-byte rather than converted to Dataverse's tabular format.