From 09a55679a31d47bda223f0b68baf5ab719c735b4 Mon Sep 17 00:00:00 2001 From: zwimer Date: Mon, 14 Oct 2024 01:37:23 -0400 Subject: [PATCH] Improve logging --- rpipe/__init__.py | 2 +- rpipe/server/admin.py | 2 +- rpipe/server/app.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rpipe/__init__.py b/rpipe/__init__.py index b8753fa..63abde1 100644 --- a/rpipe/__init__.py +++ b/rpipe/__init__.py @@ -1 +1 @@ -__version__: str = "9.0.3" # Must be "..", all numbers +__version__: str = "9.0.4" # Must be "..", all numbers diff --git a/rpipe/server/admin.py b/rpipe/server/admin.py index 45f13bb..b3b93ea 100644 --- a/rpipe/server/admin.py +++ b/rpipe/server/admin.py @@ -178,7 +178,7 @@ def _load_verifier(self, key_file: Path) -> _Verifier | None: return None def _verify_signature(self, signature: bytes, msg: bytes) -> Path | None: - self._log.info("Verifying signature of message: %s", msg) + self._log.debug("Verifying signature of message: %s", msg) for fn, path in self._verifiers: try: fn(signature, data=msg) diff --git a/rpipe/server/app.py b/rpipe/server/app.py index 6cd2735..c9ea2c9 100644 --- a/rpipe/server/app.py +++ b/rpipe/server/app.py @@ -32,7 +32,7 @@ def wrapper(*args, **kwargs): if not server.debug: # Flask already does what we want if (fp := request.full_path).endswith("?"): fp = fp[:-1] - getLogger(_LOG).info('%s - "%s %s" %d', request.host_url, request.method, fp, ret.status_code) + getLogger(_LOG).info('%s - "%s %s" %d', request.host, request.method, fp, ret.status_code) return ret return wrapper