improve logging

This commit is contained in:
Kenneth Kehl
2025-09-04 12:30:52 -07:00
parent c6e1e662ad
commit ded60409a8
11 changed files with 42 additions and 51 deletions

View File

@@ -51,7 +51,7 @@ def make_request(notification_type, provider, data, headers):
)
raise e
finally:
current_app.logger.info("Mocked provider callback request finished")
current_app.logger.debug("Mocked provider callback request finished")
return response.json()

View File

@@ -304,14 +304,6 @@ def cleanup_delivery_receipts(self):
def batch_insert_notifications(self):
batch = []
# TODO We probably need some way to clear the list if
# things go haywire. A command?
# with redis_store.pipeline():
# while redis_store.llen("message_queue") > 0:
# redis_store.lpop("message_queue")
# current_app.logger.info("EMPTY!")
# return
current_len = redis_store.llen("message_queue")
with redis_store.pipeline():
# since this list is being fed by other processes, just grab what is available when

View File

@@ -51,7 +51,7 @@ def make_request(notification_type, provider, data, headers):
)
raise e
finally:
current_app.logger.info("Mocked provider callback request finished")
current_app.logger.debug("Mocked provider callback request finished")
return response.json()