Skip to content

Commit

Permalink
Improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zwimer committed Oct 14, 2024
1 parent fcb76de commit 09a5567
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rpipe/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__: str = "9.0.3" # Must be "<major>.<minor>.<patch>", all numbers
__version__: str = "9.0.4" # Must be "<major>.<minor>.<patch>", all numbers
2 changes: 1 addition & 1 deletion rpipe/server/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion rpipe/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09a5567

Please sign in to comment.