Skip to content

Commit

Permalink
Update send message
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCoderCarl committed Apr 23, 2024
1 parent 36241f8 commit ca0652a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ def http_requests(hosts: list):
response = requests.get(f"http://{h}", timeout=10)
logging.info(response.text)
logging.info(response.headers)
logging.info(response.ok)

logging.info(f"{response.ok} is type {type(response.ok)}")

if response.status_code != 200:
telegram_sender.send_alert_to_telegram(
Expand Down
2 changes: 1 addition & 1 deletion src/telegram_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def send_alert_to_telegram(message):
API_URL,
json={
"chat_id": CHAT_ID,
"text": f"Something happend",
"text": f"{message}",
},
)
if response.status_code == 200:
Expand Down

0 comments on commit ca0652a

Please sign in to comment.