triton2997 / cowin-slot-notifier

Utility that automatically alerts via email if slots are available on the CoWIN portal. Provides rich filtering by list of pincodes, type of vaccine, dose number, etc
0 stars 0 forks source link

[TASK]: Start development of logger module #30

Closed triton2997 closed 2 years ago

triton2997 commented 3 years ago

Story: #19

Date: 17/07/2021

Description:

  1. Start development of logger module

Task type: Development

Estimated efforts (person hours): 5

Actual efforts (person hours): 6

triton2997 commented 3 years ago

Reviewed logging module available in Python. Approach finalized is as follows:

triton2997 commented 3 years ago

Added logging configurations in all modules

triton2997 commented 2 years ago

Tested end to end functionality after added logging in all modules, and updated as necessary Logging status

read configs (Done) -- FileNotFound -- -- configs.json -- -- credentials.json (no mail, only log file)

read params (Done) -- file not found

find slots (Done) -- Timeout -- unable to reproduce -- ConnectionError -- HTTPError

generate mail body -- No tests

send email (Pending) -- SMTPConnectError -- SMTPAuthenticationError -- SMTPServerDisconnected -- SMTPHeloError -- SMTPException -- TimeoutError