diff --git a/.gitignore b/.gitignore index 90cc466..0f69ab9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .vscode/ __pycache__/ +*/__pycache__/ .env \ No newline at end of file diff --git a/app.log b/app.log new file mode 100644 index 0000000..b294e0f --- /dev/null +++ b/app.log @@ -0,0 +1,192 @@ +2025-04-10 15:23:31,296 - INFO - Consumer connected to Kafka broker at dev-events.simbrellang.net:9085 +2025-04-10 15:23:31,298 - INFO - Consumer connected to Kafka broker at dev-events.simbrellang.net:9085 +2025-04-10 15:23:31,304 - INFO - Consumer connected to Kafka broker at dev-events.simbrellang.net:9085 +2025-04-10 15:23:31,307 - INFO - Consumer connected to Kafka broker at dev-events.simbrellang.net:9085 +2025-04-10 15:23:36,300 - INFO - No message received within timeout +2025-04-10 15:23:36,300 - INFO - No message received within timeout +2025-04-10 15:23:36,305 - INFO - No message received within timeout +2025-04-10 15:23:36,308 - INFO - No message received within timeout +2025-04-10 15:23:41,301 - INFO - No message received within timeout +2025-04-10 15:23:41,301 - INFO - No message received within timeout +2025-04-10 15:23:41,306 - INFO - No message received within timeout +2025-04-10 15:23:41,309 - INFO - No message received within timeout +2025-04-10 15:23:46,302 - INFO - No message received within timeout +2025-04-10 15:23:46,302 - INFO - No message received within timeout +2025-04-10 15:23:46,307 - INFO - No message received within timeout +2025-04-10 15:23:46,310 - INFO - No message received within timeout +2025-04-10 15:23:51,303 - INFO - No message received within timeout +2025-04-10 15:23:51,303 - INFO - No message received within timeout +2025-04-10 15:23:51,308 - INFO - No message received within timeout +2025-04-10 15:23:51,311 - INFO - No message received within timeout +2025-04-10 15:23:56,304 - INFO - No message received within timeout +2025-04-10 15:23:56,304 - INFO - No message received within timeout +2025-04-10 15:23:56,309 - INFO - No message received within timeout +2025-04-10 15:23:56,312 - INFO - No message received within timeout +2025-04-10 15:24:01,305 - INFO - No message received within timeout +2025-04-10 15:24:01,305 - INFO - No message received within timeout +2025-04-10 15:24:01,310 - INFO - No message received within timeout +2025-04-10 15:24:01,313 - INFO - No message received within timeout +2025-04-10 15:24:06,306 - INFO - No message received within timeout +2025-04-10 15:24:06,306 - INFO - No message received within timeout +2025-04-10 15:24:06,311 - INFO - No message received within timeout +2025-04-10 15:24:06,314 - INFO - No message received within timeout +2025-04-10 15:24:11,307 - INFO - No message received within timeout +2025-04-10 15:24:11,307 - INFO - No message received within timeout +2025-04-10 15:24:11,312 - INFO - No message received within timeout +2025-04-10 15:24:11,315 - INFO - No message received within timeout +2025-04-10 15:24:16,308 - INFO - No message received within timeout +2025-04-10 15:24:16,308 - INFO - No message received within timeout +2025-04-10 15:24:16,313 - INFO - No message received within timeout +2025-04-10 15:24:16,316 - INFO - No message received within timeout +2025-04-10 15:24:21,309 - INFO - No message received within timeout +2025-04-10 15:24:21,309 - INFO - No message received within timeout +2025-04-10 15:24:21,314 - INFO - No message received within timeout +2025-04-10 15:24:21,317 - INFO - No message received within timeout +2025-04-10 15:24:26,310 - INFO - No message received within timeout +2025-04-10 15:24:26,310 - INFO - No message received within timeout +2025-04-10 15:24:26,315 - INFO - No message received within timeout +2025-04-10 15:24:26,318 - INFO - No message received within timeout +2025-04-10 15:24:31,311 - INFO - No message received within timeout +2025-04-10 15:24:31,311 - INFO - No message received within timeout +2025-04-10 15:24:31,316 - INFO - No message received within timeout +2025-04-10 15:24:31,319 - INFO - No message received within timeout +2025-04-10 15:24:36,311 - INFO - No message received within timeout +2025-04-10 15:24:36,312 - INFO - No message received within timeout +2025-04-10 15:24:36,316 - INFO - No message received within timeout +2025-04-10 15:24:36,319 - INFO - No message received within timeout +2025-04-10 15:24:41,312 - INFO - No message received within timeout +2025-04-10 15:24:41,313 - INFO - No message received within timeout +2025-04-10 15:24:41,317 - INFO - No message received within timeout +2025-04-10 15:24:41,320 - INFO - No message received within timeout +2025-04-10 15:24:46,314 - INFO - No message received within timeout +2025-04-10 15:24:46,314 - INFO - No message received within timeout +2025-04-10 15:24:46,318 - INFO - No message received within timeout +2025-04-10 15:24:46,321 - INFO - No message received within timeout +2025-04-10 15:24:51,314 - INFO - No message received within timeout +2025-04-10 15:24:51,315 - INFO - No message received within timeout +2025-04-10 15:24:51,319 - INFO - No message received within timeout +2025-04-10 15:24:51,322 - INFO - No message received within timeout +2025-04-10 15:24:56,315 - INFO - No message received within timeout +2025-04-10 15:24:56,316 - INFO - No message received within timeout +2025-04-10 15:24:56,320 - INFO - No message received within timeout +2025-04-10 15:24:56,323 - INFO - No message received within timeout +2025-04-10 15:25:01,316 - INFO - No message received within timeout +2025-04-10 15:25:01,317 - INFO - No message received within timeout +2025-04-10 15:25:01,321 - INFO - No message received within timeout +2025-04-10 15:25:01,324 - INFO - No message received within timeout +2025-04-10 15:25:06,317 - INFO - No message received within timeout +2025-04-10 15:25:06,318 - INFO - No message received within timeout +2025-04-10 15:25:06,322 - INFO - No message received within timeout +2025-04-10 15:25:06,325 - INFO - No message received within timeout +2025-04-10 15:25:11,318 - INFO - No message received within timeout +2025-04-10 15:25:11,319 - INFO - No message received within timeout +2025-04-10 15:25:11,323 - INFO - No message received within timeout +2025-04-10 15:25:11,326 - INFO - No message received within timeout +2025-04-10 15:25:16,319 - INFO - No message received within timeout +2025-04-10 15:25:16,320 - INFO - No message received within timeout +2025-04-10 15:25:16,324 - INFO - No message received within timeout +2025-04-10 15:25:16,327 - INFO - No message received within timeout +2025-04-10 15:25:21,320 - INFO - No message received within timeout +2025-04-10 15:25:21,321 - INFO - No message received within timeout +2025-04-10 15:25:21,325 - INFO - No message received within timeout +2025-04-10 15:25:21,328 - INFO - No message received within timeout +2025-04-10 15:25:26,321 - INFO - No message received within timeout +2025-04-10 15:25:26,322 - INFO - No message received within timeout +2025-04-10 15:25:26,326 - INFO - No message received within timeout +2025-04-10 15:25:26,329 - INFO - No message received within timeout +2025-04-10 15:25:31,322 - INFO - No message received within timeout +2025-04-10 15:25:31,323 - INFO - No message received within timeout +2025-04-10 15:25:31,327 - INFO - No message received within timeout +2025-04-10 15:25:31,330 - INFO - No message received within timeout +2025-04-10 15:25:36,323 - INFO - No message received within timeout +2025-04-10 15:25:36,324 - INFO - No message received within timeout +2025-04-10 15:25:36,328 - INFO - No message received within timeout +2025-04-10 15:25:36,331 - INFO - No message received within timeout +2025-04-10 15:25:41,324 - INFO - No message received within timeout +2025-04-10 15:25:41,325 - INFO - No message received within timeout +2025-04-10 15:25:41,329 - INFO - No message received within timeout +2025-04-10 15:25:41,332 - INFO - No message received within timeout +2025-04-10 15:25:46,325 - INFO - No message received within timeout +2025-04-10 15:25:46,326 - INFO - No message received within timeout +2025-04-10 15:25:46,330 - INFO - No message received within timeout +2025-04-10 15:25:46,333 - INFO - No message received within timeout +2025-04-10 15:25:51,326 - INFO - No message received within timeout +2025-04-10 15:25:51,327 - INFO - No message received within timeout +2025-04-10 15:25:51,331 - INFO - No message received within timeout +2025-04-10 15:25:51,334 - INFO - No message received within timeout +2025-04-10 15:25:56,327 - INFO - No message received within timeout +2025-04-10 15:25:56,328 - INFO - No message received within timeout +2025-04-10 15:25:56,332 - INFO - No message received within timeout +2025-04-10 15:25:56,335 - INFO - No message received within timeout +2025-04-10 15:26:01,328 - INFO - No message received within timeout +2025-04-10 15:26:01,329 - INFO - No message received within timeout +2025-04-10 15:26:01,333 - INFO - No message received within timeout +2025-04-10 15:26:01,336 - INFO - No message received within timeout +2025-04-10 15:26:06,329 - INFO - No message received within timeout +2025-04-10 15:26:06,330 - INFO - No message received within timeout +2025-04-10 15:26:06,334 - INFO - No message received within timeout +2025-04-10 15:26:06,337 - INFO - No message received within timeout +2025-04-10 15:26:11,330 - INFO - No message received within timeout +2025-04-10 15:26:11,331 - INFO - No message received within timeout +2025-04-10 15:26:11,335 - INFO - No message received within timeout +2025-04-10 15:26:11,338 - INFO - No message received within timeout +2025-04-10 15:26:16,331 - INFO - No message received within timeout +2025-04-10 15:26:16,332 - INFO - No message received within timeout +2025-04-10 15:26:16,337 - INFO - No message received within timeout +2025-04-10 15:26:16,339 - INFO - No message received within timeout +2025-04-10 15:26:21,332 - INFO - No message received within timeout +2025-04-10 15:26:21,333 - INFO - No message received within timeout +2025-04-10 15:26:21,338 - INFO - No message received within timeout +2025-04-10 15:26:21,340 - INFO - No message received within timeout +2025-04-10 15:26:26,333 - INFO - No message received within timeout +2025-04-10 15:26:26,334 - INFO - No message received within timeout +2025-04-10 15:26:26,339 - INFO - No message received within timeout +2025-04-10 15:26:26,341 - INFO - No message received within timeout +2025-04-10 15:26:31,334 - INFO - No message received within timeout +2025-04-10 15:26:31,335 - INFO - No message received within timeout +2025-04-10 15:26:31,340 - INFO - No message received within timeout +2025-04-10 15:26:31,342 - INFO - No message received within timeout +2025-04-10 15:26:36,335 - INFO - No message received within timeout +2025-04-10 15:26:36,335 - INFO - No message received within timeout +2025-04-10 15:26:36,341 - INFO - No message received within timeout +2025-04-10 15:26:36,342 - INFO - No message received within timeout +2025-04-10 15:26:41,336 - INFO - No message received within timeout +2025-04-10 15:26:41,336 - INFO - No message received within timeout +2025-04-10 15:26:41,342 - INFO - No message received within timeout +2025-04-10 15:26:41,343 - INFO - No message received within timeout +2025-04-10 15:26:42,965 - INFO - Consumer connected to Kafka broker at dev-events.simbrellang.net:9085 +2025-04-10 15:26:42,967 - INFO - Consumer connected to Kafka broker at dev-events.simbrellang.net:9085 +2025-04-10 15:26:42,970 - INFO - Consumer connected to Kafka broker at dev-events.simbrellang.net:9085 +2025-04-10 15:26:42,981 - INFO - Consumer connected to Kafka broker at dev-events.simbrellang.net:9085 +2025-04-10 15:26:47,967 - INFO - No message received within timeout +2025-04-10 15:26:47,968 - INFO - No message received within timeout +2025-04-10 15:26:47,970 - INFO - No message received within timeout +2025-04-10 15:26:47,981 - INFO - No message received within timeout +2025-04-10 15:26:52,968 - INFO - No message received within timeout +2025-04-10 15:26:52,969 - INFO - No message received within timeout +2025-04-10 15:26:52,971 - INFO - No message received within timeout +2025-04-10 15:26:52,982 - INFO - No message received within timeout +2025-04-10 15:26:57,969 - INFO - No message received within timeout +2025-04-10 15:26:57,970 - INFO - No message received within timeout +2025-04-10 15:26:57,972 - INFO - No message received within timeout +2025-04-10 15:26:57,983 - INFO - No message received within timeout +2025-04-10 15:27:02,971 - INFO - No message received within timeout +2025-04-10 15:27:02,971 - INFO - No message received within timeout +2025-04-10 15:27:02,973 - INFO - No message received within timeout +2025-04-10 15:27:02,984 - INFO - No message received within timeout +2025-04-10 15:27:07,972 - INFO - No message received within timeout +2025-04-10 15:27:07,973 - INFO - No message received within timeout +2025-04-10 15:27:07,973 - INFO - No message received within timeout +2025-04-10 15:27:07,985 - INFO - No message received within timeout +2025-04-10 15:27:12,973 - INFO - No message received within timeout +2025-04-10 15:27:12,973 - INFO - No message received within timeout +2025-04-10 15:27:12,974 - INFO - No message received within timeout +2025-04-10 15:27:12,986 - INFO - No message received within timeout +2025-04-10 15:27:17,974 - INFO - No message received within timeout +2025-04-10 15:27:17,975 - INFO - No message received within timeout +2025-04-10 15:27:17,975 - INFO - No message received within timeout +2025-04-10 15:27:17,987 - INFO - No message received within timeout +2025-04-10 15:27:22,975 - INFO - No message received within timeout +2025-04-10 15:27:22,975 - INFO - No message received within timeout +2025-04-10 15:27:22,976 - INFO - No message received within timeout +2025-04-10 15:27:22,988 - INFO - No message received within timeout diff --git a/app/__pycache__/__init__.cpython-310.pyc b/app/__pycache__/__init__.cpython-310.pyc deleted file mode 100644 index 61b13ba..0000000 Binary files a/app/__pycache__/__init__.cpython-310.pyc and /dev/null differ diff --git a/app/__pycache__/config.cpython-310.pyc b/app/__pycache__/config.cpython-310.pyc deleted file mode 100644 index 9e2ef39..0000000 Binary files a/app/__pycache__/config.cpython-310.pyc and /dev/null differ diff --git a/app/errors/__pycache__/__init__.cpython-310.pyc b/app/errors/__pycache__/__init__.cpython-310.pyc deleted file mode 100644 index 4ca4fc6..0000000 Binary files a/app/errors/__pycache__/__init__.cpython-310.pyc and /dev/null differ diff --git a/app/errors/__pycache__/handlers.cpython-310.pyc b/app/errors/__pycache__/handlers.cpython-310.pyc deleted file mode 100644 index aed3a0e..0000000 Binary files a/app/errors/__pycache__/handlers.cpython-310.pyc and /dev/null differ diff --git a/app/helpers/__pycache__/response_helper.cpython-310.pyc b/app/helpers/__pycache__/response_helper.cpython-310.pyc deleted file mode 100644 index 2f0f071..0000000 Binary files a/app/helpers/__pycache__/response_helper.cpython-310.pyc and /dev/null differ diff --git a/app/integrations/kafka.py b/app/integrations/kafka.py index 4d3ed85..257c71f 100644 --- a/app/integrations/kafka.py +++ b/app/integrations/kafka.py @@ -1,11 +1,9 @@ from confluent_kafka import Consumer, Producer import json -import logging +from app.utils.logger import logger from app.config import settings import requests -logger = logging.getLogger(__name__) - class KafkaIntegration: _consumer = None diff --git a/app/routes/__pycache__/__init__.cpython-310.pyc b/app/routes/__pycache__/__init__.cpython-310.pyc deleted file mode 100644 index 95cf942..0000000 Binary files a/app/routes/__pycache__/__init__.cpython-310.pyc and /dev/null differ diff --git a/app/routes/__pycache__/authentication.cpython-310.pyc b/app/routes/__pycache__/authentication.cpython-310.pyc deleted file mode 100644 index b1dd047..0000000 Binary files a/app/routes/__pycache__/authentication.cpython-310.pyc and /dev/null differ diff --git a/app/routes/__pycache__/eligibility.cpython-310.pyc b/app/routes/__pycache__/eligibility.cpython-310.pyc deleted file mode 100644 index 5267435..0000000 Binary files a/app/routes/__pycache__/eligibility.cpython-310.pyc and /dev/null differ diff --git a/app/utils/__pycache__/__init__.cpython-310.pyc b/app/utils/__pycache__/__init__.cpython-310.pyc deleted file mode 100644 index eea9cde..0000000 Binary files a/app/utils/__pycache__/__init__.cpython-310.pyc and /dev/null differ diff --git a/app/utils/__pycache__/auth.cpython-310.pyc b/app/utils/__pycache__/auth.cpython-310.pyc deleted file mode 100644 index bb7109e..0000000 Binary files a/app/utils/__pycache__/auth.cpython-310.pyc and /dev/null differ diff --git a/wsgi.py b/wsgi.py index 7137082..c9745ad 100644 --- a/wsgi.py +++ b/wsgi.py @@ -1,10 +1,9 @@ from app import create_app from app.integrations import KafkaIntegration from app.config import settings -import logging +from app.utils.logger import logger app = create_app() -logger = logging.getLogger(__name__) if __name__ != "__main__":