Skip to content

Commit

Permalink
Exporter: Add Debug Log for Denied Requests
Browse files Browse the repository at this point in the history
Without that log entry, it's hard to figure out, why a request was
denied.
  • Loading branch information
holesch committed Aug 16, 2024
1 parent b3e5813 commit ddfaad9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions not_my_board/_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ async def _handle_client(self, reader, writer):

await self._tunnel(reader, writer, target, trailing_data)
else:
logger.debug(
"Denying request for client %s, expected %s",
client_ip,
list(self._ip_to_tasks_map),
)
await con.deny_request()

async def _tunnel(self, client_r, client_w, target, trailing_data):
Expand Down

0 comments on commit ddfaad9

Please sign in to comment.