added trace output

This commit is contained in:
Daniel Schick 2024-02-14 16:12:07 +01:00
parent fc1b55c7b9
commit 77722703ac
2 changed files with 5 additions and 1 deletions

View File

@ -42,7 +42,7 @@ ALTER TABLE `bremen_calling_devel`.`user`
ADD COLUMN `notify_email` BIT NULL DEFAULT NULL AFTER `api_key`,
ADD COLUMN `notify_whatsapp` BIT NULL DEFAULT NULL AFTER `notify_email`,
ADD COLUMN `notify_signal` BIT NULL DEFAULT NULL AFTER `notify_whatsapp`,
ADD COLUMN `notifiy_popup` BIT NULL DEFAULT NULL AFTER `notify_signal`,
ADD COLUMN `notify_popup` BIT NULL DEFAULT NULL AFTER `notify_signal`,
CHANGE COLUMN `participant_id` `participant_id` INT UNSIGNED NOT NULL ;
ALTER TABLE `bremen_calling_devel`.`user`
ADD CONSTRAINT `FK_USER_PART`

View File

@ -1,5 +1,6 @@
import json
import logging
import traceback
import pydapper
from ..schemas import model
@ -26,6 +27,7 @@ def GetTimes(options):
pooledConnection.close()
except Exception as ex:
logging.error(traceback.format_exc())
logging.error(ex)
print(ex)
result = {}
@ -93,6 +95,7 @@ def PostTimes(schemaModel):
return json.dumps({"id" : new_id}), 201, {'Content-Type': 'application/json; charset=utf-8'}
except Exception as ex:
logging.error(traceback.format_exc())
logging.error(ex)
print(ex)
result = {}
@ -148,6 +151,7 @@ def PutTimes(schemaModel):
return json.dumps({"id" : schemaModel["id"]}), 200, {'Content-Type': 'application/json; charset=utf-8'}
except Exception as ex:
logging.error(traceback.format_exc())
logging.error(ex)
print(ex)
result = {}