Skip to content

Commit

Permalink
Merge pull request #637 from Aiven-Open/dmitry-potepalov/fix-line-too…
Browse files Browse the repository at this point in the history
…-long

Reduce the length of log debug line
  • Loading branch information
jlprat authored Dec 17, 2024
2 parents fe99476 + 9247369 commit 28ee54f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pghoard/webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,6 @@ def _is_valid_xlog_path(xlog_path_str: str) -> bool:
xlog_path = Path(xlog_path_str)
return xlog_path.is_file() and not xlog_path.is_symlink()


def get_wal_or_timeline_file(self, site: str, filename: str, filetype: str) -> None:
target_path = self.headers.get("x-pghoard-target-path")
if not target_path:
Expand Down Expand Up @@ -621,7 +620,7 @@ def handle_archival_request(self, site, filename, filetype):
xlog_path = os.path.join(xlog_dir, filename)
self.server.log.debug("Got request to archive: %r %r %r, %r", site, filetype, filename, xlog_path)
if not self._is_valid_xlog_path(xlog_path):
self.server.log.debug("xlog_path: %r did not exist or contains symlinks, cannot archive, returning 404", xlog_path)
self.server.log.debug("xlog_path: %r did not exist or is symlink, cannot archive, returning 404", xlog_path)
raise HttpResponse("N/A", status=404)

if filetype == "xlog":
Expand Down

0 comments on commit 28ee54f

Please sign in to comment.