Skip to content

Commit

Permalink
add log on error.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoseinaghaei committed Feb 15, 2024
1 parent 270f8c2 commit 0c14213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafka_server/broker/file/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def send_to_subscriber(self, key: str, value: str) -> bool:

try:
response = requests.post(url, json={'key': key, 'value': value}, timeout=2)
if response != 200:
if response.status_code != 200:
print(response.json(), response.content, response.status_code)

return response.status_code == 200
Expand Down

0 comments on commit 0c14213

Please sign in to comment.