Moves logs to be consistent with the rest of db logs. Adds missing docs and adds an exception if the db is alredy being used

This commit is contained in:
Sergi Delgado Segura
2020-01-22 15:20:50 +01:00
parent 1027f48611
commit fd6c85ced2
2 changed files with 10 additions and 1 deletions

View File

@@ -148,7 +148,6 @@ class Cleaner:
"""
for uuid in triggered_appointments:
logger.info("Flagging appointment as triggered", locator=appointments[uuid].get("locator"), uuid=uuid)
Cleaner.delete_appointment_from_memory(uuid, appointments, locator_uuid_map)
db_manager.create_triggered_appointment_flag(uuid)