added logs
This commit is contained in:
parent
27661992db
commit
c82eb6e914
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,9 @@ from pathlib import Path
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
from logging_conf import get_logger
|
||||||
|
|
||||||
|
logger = get_logger(__name__)
|
||||||
|
|
||||||
class SignalMessager:
|
class SignalMessager:
|
||||||
def __init__(self, api_url: str, user_number: str):
|
def __init__(self, api_url: str, user_number: str):
|
||||||
|
@ -31,4 +34,6 @@ class SignalMessager:
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.info(body)
|
||||||
|
|
||||||
requests.post(self.api_url, headers=headers, json=body)
|
requests.post(self.api_url, headers=headers, json=body)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue